Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.2.4 sp1
Mapping documents:Using Hibernate Annotation.
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:PostgreSQL 8.1.8
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
I used @Index to define a DB index in a many-to-one association, like this:
Code:
@ManyToOne(fetch=FetchType.EAGER)
@JoinColumn(name="latest_exercise")
@Index(name="exercise_index")
public ExerciseRecord getLatestExercise() {
return latestExercise;
}
But it is not created. How to create this index?