1. @ForeignKey in Hibernate 3.5-beta1 stackoverflow.comI tried out beta1 of Hibernate, and annotations were supposed to be included, yet when I use the JAR file I cannot find org.hibernate.annotations.ForeignKey nor any ForeignKey annotation class inside the ... |
2. @ForeignKey for joinTable forum.hibernate.orgHi all, as you know we can specify the name of an integrity constraint with the annotation @foreignKey . This avoid the generation of an unreadeable name with hbm2ddl. Does anybody know how to specify the name of the constraints on a joinTable in a relation manyToMany ? thanks for your help tiggy |
3. annotation @ForeignKey is disallowed for this location forum.hibernate.orgAuthor Message chitcool Post subject: annotation @ForeignKey is disallowed for this location Posted: Thu Jan 15, 2009 12:44 am Newbie Joined: Thu Jan 15, 2009 12:32 am Posts: 1 I am doing exactly like seam wiki example but in entity class, get this error "compilation problem: The annotation @ForeignKey is disallowed for this location" What am I missing? Enviroment: ... |
4. @ForeignKey naming with TABLE_PER_CLASS inheritance forum.hibernate.orgI'm using Hibernate 3.2.5.GA, but also tried 3.3.1.GA (with Oracle database and JDBC ver. 11.1.0.6.0) and I'm having problem when naming foreign keys. First sample code (I've omitted irrelevant parts): Code: @Entity @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) @SequenceGenerator(name = "SEQ", sequenceName = "SEQ_OBIEKTY") public abstract class AbstractObject implements Serializable { @ManyToOne @JoinColumn(name = "CREATE_BY") @ForeignKey(name="FK_CB_") ... |