-->
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: Foreign key name mapped to different tables!
PostPosted: Fri May 24, 2013 3:59 pm 
Newbie

Joined: Fri May 24, 2013 3:45 pm
Posts: 3
I am having this problem when running hbm2java from a PostgreSQL 9.2 DB.

Code:
[hibernatetool] An exception occurred while running exporter #2:hbm2java (Generates a set of .java files)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.cfg.JDBCBinderException: Foreign key name (is_a) mapped to different tables! previous: org.hibernate.mapping.Table(public.as_azn_tnd_tml) current:org.hibernate.mapping.Table(public.as_gge_tnk_lv)

I looked and found some posts and blogs about this issue but no solution. I would like to know if there is something I can do about it at hibernate level or if I need to change the schema. I am implementing a custom exporter based on DelegatingReverseEngineeringStrategy so if there is a solution I can perform there, that would be acceptable for me.

Thanks in advance!
Regards,
Manuel.


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.