hibernate3
named parameters in a subquery in hibernate
how can I pass a parameter to a subquery in hibernate? I am trying this but I get an exception that :currentDate does not exist as a named parameter in (...[query]...) even though the query clearly sh[详细]
2023-03-26 02:15 分类:问答Annotations Hibernate 3.5
The below annotation works when applying it to the field: @OneToMany(targetEntity=TestMany.class, cascade=CascadeType.ALL, fetch=FetchType.EAGER)[详细]
2023-03-19 15:36 分类:问答What is wrong with my Spring and Hibernate configuration?
What is wrong with this configuration?I\'m using Spring 3 and Hibernate 3.6 and trying to set up to use DAOs.I\'m seeing two errors in hibernate.cfg.xml.[详细]
2023-03-12 12:01 分类:问答When to use transactions in Spring with Hibernate?
Upgrading my project I\'m thinking here about transactions. Well, the thing is I\'m not quite sure when should I use the transactions for my Hibernate queries in Spring.[详细]
2023-03-05 12:34 分类:问答Execute @PostLoad _after_ eagerly fetching?
Using JPA2/Hibernate, I\'ve created an entity A that has a uni-directional mapping to an entity X (see below). Inside A, I also have a transient member \"t\" that I am trying to calculate using a @Pos[详细]
2023-01-31 09:04 分类:问答How to map derived identities in hibernate 3?
I have the following situation: @Entity class A{ @Id @SequenceGenerator(name = \"SEQ_AID\", sequenceName = \"SEQ_AID\")[详细]
2023-01-26 17:20 分类:问答Upgrade Glassfish v2 to JPA 2.0?
I\'m trying to use Hibernate 3.5.5 with Spring HibernateJpaVendorAdapter on Glassfish V2 but I\'m getting the following exception when the Spring contex开发者_JS百科t is initialised:[详细]
2023-01-18 15:04 分类:问答How to keep hibernate3-maven-plugin HBM2DDL from printing to console
I used开发者_StackOverflow the hibernate3-maven-plugin to automatically create a SQL script I can use to create a database schema in a new database.I do this via the hbm2ddl tool.I thought that when I[详细]
2023-01-02 10:28 分类:问答Maven doesn't compile target/hibernate3/generated-sources
Can someone tell me how to configure maven for it also to compile sources from the target/hibernate3/generated-sources directory? I have already read this and other posts but they don\'t seem to solve[详细]
2022-12-31 23:35 分类:问答How to get hibernate3-maven-plugin hbm2ddl to find JDBC driver?
I have a Java project I am building with Maven.I am now trying to get the hibernate3-maven-plugin to run the hbm2ddl tool to generate a schema.sql file I can use to create the database schema from my[详细]
2022-12-30 10:06 分类:问答