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
The below annotation works when applying it to the field: @OneToMany(targetEntity=TestMany.class, cascade=CascadeType.ALL, fetch=FetchType.EAGER)
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.
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.
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
I have the following situation: @Entity class A{ @Id @SequenceGenerator(name = \"SEQ_AID\", sequenceName = \"SEQ_AID\")
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:
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
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
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