persistence.xml <persistence-unit name=\"myEntityManager\" transaction-type=\"RESOURCE_LOCAL\"> <class>com.epam.testapp.model.News</class>
When trying to map an inherited property using AttributeOverride annotation, OpenJPA throws an error that it cannot find the property in the super class.I\'m not sure how to map this the correct way.
I have a OneToMany relationship defined like this: @Entity Parent extends BaseEntity { @OneToMany(mappedBy = \"parent\", fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.REFRESH,
I have a specific problem with an unit test using embedded OpenEJB container. I have a bi-directional relation between two classes. In one direction the relation works properly, but in the opposite di
I have a problem. I\'m learning JPA. I\'m using embedded OpenEJB container in unit tests, but only working is @OneToMany(fetch=EAGER). Otherwise is the collection allways null. I haven\'t found, how t
I was given a task to write a named native subquery like select c.comp_name from company c where c.cid = (select cid from com_usr_rel where uid=1100)
Is anyone successfully using OpenJPA with Glassfish? I\'m trying to use OpenJPA 2.1 with Glassfish 3.1 Open Source.I\'ve followed the instructions to integrate the two here -> http://weblogs.java.ne
I deployed my ear file on Websphere Application server V7.0 and start the application. However, it does not auto create table to my database DB2 and don\'t have any error message.
I have a Parent entity that owns(via mappedBy) a FetchType.LAZY Set<Child> with orphanDe开发者_高级运维lete=true.
I have three classes: Location, MTFCC, and BorderPoint. Location has a unidirectional @ManyToOne relationship with MTFCC, which is intended only as a Lookup table. No cascading is defined.