Hibernate
What use in place of Annotations Configuration in Hibernate?
I used AnnotationConfiguration before but now is deprec开发者_如何学运维ated AnnotationConfiguration cfg = new AnnotationConfiguration();[详细]
2023-04-13 03:36 分类:问答Jboss Connection pooling or Hibernate Connection pooling
We use Spring + Hibernate in Jboss application server. We have been using Jboss connection pooling for all our application connection pooling needs using the *-ds.xml file as follows[详细]
2023-04-13 02:14 分类:问答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 map a simple Hibernate join result to object with sub-objects?
I am confused about how to query for a list of objects with sub-objects in it. I have two classes Execution and Order. And In Execution, I have the order object in it as a one-to-one relationship:[详细]
2023-04-12 23:53 分类:问答How to connect to different databases (development/test/production) transparently with hibernate
I have several different databases for different environments to connect my application to. These are constant per installation but differ between them. In other words there is[详细]
2023-04-12 23:38 分类:问答Getting a list of objects in Hibernate returns a list of a single object
I am using Hibernate in my Spring Java EE application. I get the list of Users, where User is a bean specified in the applicationContext.xml as follows:[详细]
2023-04-12 20:33 分类:问答Hibernate failed to execute query afte 1 day
I am getting following error in my web application after one day. I have dont lot of search on it for couldn\'t fix this problem yet. Can anybody help me out?[详细]
2023-04-12 19:28 分类:问答Hibernate Entity dependant on column value
Is it possible with Hibernate to have a single table in the database, which stores multiple types of entities, differentiated开发者_如何学JAVA by the value of some column?[详细]
2023-04-12 17:57 分类:问答Hibernate: @GeneratedValue(strategy = GenerationType
I am using DB2 for my application. I run some insertion script after creating database. That insertion scri开发者_C百科pt generates records in table with id\'s given in insertion script.[详细]
2023-04-12 16:51 分类:问答