I\'ve a problem, that I can\'t solve for days now. I have read many docs, searched many forums, but found no solution.
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.
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
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
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(
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
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 = (
I am trying to run such JPQL query: SELECT t1 FROM Table1 t1 ORDER BY t1.column1.id ASC Column1 as such implementation:
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
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