我尝试在Netbeans7.0中使用实体类( Entity,JPA),但它不起作用。在BookApp上右键单击,然后选择实体类、fron、对话框、新建实体类,从数据库中插入JNDI名称:jdbc/ test ,用于连接到测试数据库,并选择表图书。创建会话Bean
I在BookApp-ejb上右键单击会话Beans为实体类并单击Next。i单击Add All >>并单击Next。Class expected : class ja
creating bean with name 'addressRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.example.repository.AddressRepository.findByCustomerId