I try to name constrains.
My join looks like:
Code:
@ManyToOne
@JoinColumn(name = "CREATE_BY")
@ForeignKey(name="_createBy_",inverseName="_INVERSEcreateBy_")
protected User createBy;
I use Oracle 10g 10.2.0.1.0 database, org.hibernate.dialect.Oracle10gDialect dialect and the newest JDBC driver available.
Unfortunatelly constrains still have names like FK27EFHGF65.
I use JBoss 4.2.4 with Hibernate 3.2.4.sp1 (i've tried 3.2.6 too) and hibernate Annotation library 3.2.1.GA
Where can I check sql generated by Hibernate?