jpa
JPA OneToMany with inherited entities using DiscriminatorOptions and orphanremoval
I\'ve a problem, that I can\'t solve for days now. I have read many docs, searched many forums, but found no solution.[详细]
2023-04-13 08:23 分类:问答NamedQuery defined in DAO annotation not found by Hibernate session factory
I use Spring along with Hib开发者_JAVA百科ernate. In my DAO, I defined a NamedQuery which is not found by the session factory, although I have added the package of that DAO to the packagesToScan.[详细]
2023-04-13 07:48 分类:问答JPA reads but doesn't persists
My Java Web App reads data from database but when I try to write something, JPA says ok, but the database does not change. I call \"merge\" method and the data are not being saved on database, only in[详细]
2023-04-13 07:04 分类:问答Apache Camel - Routing messages to JPA endpoint - keeping orders but splitting into pools based on a category header
We have simple project which takes a number of messages from a number of endpoints(agents). These agents all output the same format message (an entity object to be placed in a database). All the agent[详细]
2023-04-13 05:22 分类:问答Why does lazy loaded child object not get deleted for detached parent object
I have a doubt about how JPA handles lazy initialization of child objects.If i have object A conta开发者_开发知识库ining a one-to-many with object B ( where B is lazy initialized) and i load object A([详细]
2023-04-13 02:03 分类:问答JPA annotations = EJB3 annotations = Hibernate annotations?
I\'m using JBoss Tools to reverse engineer a DB schema into POJO\'s. Specifically, I\'m using thehbm2java option in the hibernatetool ANT task. Under the hbm2java option you can specify ejb3=true[详细]
2023-04-13 01:57 分类:问答JPA, playframework, select order by before group by
How can I write a query in \"JPA\" that will ORDER BY before the GROUP BY? For example : select m from Message m where m.id = ([详细]
2023-04-13 01:14 分类:问答How to include NULL using Order By with JPQL?
I am trying to run such JPQL query: SELECT t1 FROM Table1 t1 ORDER BY t1.column1.id ASC Column1 as such implementation:[详细]
2023-04-12 23:41 分类:问答JPA/Eclipselink - Multpile entities in single table
I\'m using Eclipselink to map my t开发者_运维问答ables to entities. I have one big database table (actually it\'s view) with columns like groupId, groupName, categoryId, categoryName etc. I know it\'s[详细]
2023-04-12 22:38 分类:问答Jboss - Strange exception after auto-reconnecting to XA datasource
I\'m using a XA datasource on Jboss 6, using <check-valid-connection-sql> and <background-validation-millis> to auto-reconnect when one of the connections is dead. This works, but the prob[详细]
2023-04-12 22:33 分类:问答