-->
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.  [ 2 posts ] 
Author Message
 Post subject: reverse engineering doublise set
PostPosted: Fri Jul 23, 2010 6:14 am 
Newbie

Joined: Tue Jun 22, 2010 11:26 am
Posts: 9
Hi guys,

I have problem with duplicated sets for one-to-many like:

Code:
        <set name="referencePhysicalGeneEncodesReferenceGeneProducts" table="ReferencePhysicalGeneEncodesReferenceGeneProduct" inverse="true" lazy="true" fetch="select">
            <key>
                <column name="referenceGeneID" not-null="true" />
            </key>
            <one-to-many class="org.phibase.database.schema.ReferencePhysicalGeneEncodesReferenceGeneProduct" />
        </set>
        <set name="referencePhysicalGeneEncodesReferenceGeneProducts_1" table="ReferencePhysicalGeneEncodesReferenceGeneProduct" inverse="true" lazy="true" fetch="select">
            <key>
                <column name="referenceGeneID" not-null="true" />
            </key>
            <one-to-many class="org.phibase.database.schema.ReferencePhysicalGeneEncodesReferenceGeneProduct" />
        </set>


It's the same for classes. I tried different options including EJB3 annotations only (without configuration files). Yesterday I view my older version and it was found as well. It looks it doesn't depend the hibernate tools version. DDL for me looks normal. Database is normal as well (on mysql InnoDB).

thanks a lot for help,


Top
 Profile  
 
 Post subject: Re: reverse engineering doublise set
PostPosted: Fri Jul 23, 2010 7:26 am 
Newbie

Joined: Tue Jun 22, 2010 11:26 am
Posts: 9
OK.

Reason is not on the hibernate tools side. I found doubled foreign keys somehow.

Cheers,
Jacek


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

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.