I have this Service bean: @Stateless public class BookService { @PersistenceContext(unitName=\"persistentUnit\")
If I have a h:dataTable in books.xhtml providing a list of records and I want to view a particular record, then add or edit that record, currently I have this:
I\'m using inheritance with EJB in a few scenarios, sometimes with annotations in the super class like this generic entityDAO:
I\'m using JPA2 and Hibernate implementation. I\'m trying to persist a User object, which got a List of Authorities
How do you handle this situation where Oracle stores the empty string as a null in the database ? I would like it to be stored as an empty string as it is not as NULL, since issuing the query would b
How to add the first entity of recursive non-null relation? The trouble occurs when trying to use my default audit guard (EntityL开发者_如何转开发istener) for user entities. Hibernate isnt able to i
So far i\'ve been testing my JPA entities (with Hibernate 3.6.x as the implementation) with the schema being autogenerated with this configuration of hibernate.hbm2ddl.auto being set to create-drop:
In my UserTbl entity, I have this @OneToOne( cascade = CascadeType.REMOVE, mappedBy = \"user\", fetch=FetchType.EAGER )
We\'ve set the following property in persistence.xml: <property name=\"openjpa.jdbc.SynchronizeMappings\" value=\"buildSchema(ForeignKeys=t开发者_运维知识库rue)\"/>
i want to pass a parameter in the jpql as set in an update statement. here is the statement: Query query = entityManager.createQuery(\"UPDATE Patient patient SET \"