-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: @ForeignKey doesn't work
PostPosted: Thu Feb 28, 2008 5:08 am 
Beginner
Beginner

Joined: Thu Feb 28, 2008 4:58 am
Posts: 37
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.