-->
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: minor bug in <composite-id> for hbm2java
PostPosted: Tue Mar 08, 2005 11:59 am 
Newbie

Joined: Tue Feb 15, 2005 12:18 am
Posts: 2
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:2.1.8

Mapping documents:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping package="com.nyker.test.hibernate.bookbiz">
   <!-- composite-id ignored default package declaration BUG! -->
  <class name="TitleAuthor" table="TITLEAUTHORS">
   <composite-id name="id" class="com.nyker.test.hibernate.bookbiz.TitleAuthorId">
      <key-many-to-one name="author" class="com.nyker.test.hibernate.bookbiz.Author" column="au_id"/>
      <key-many-to-one name="title" class="com.nyker.test.hibernate.bookbiz.Title" column="title_id"/>
   </composite-id>
    <property name="au_ord" type="integer"/>
   <property name="royaltyper" type="float"/>
  </class>
</hibernate-mapping>



Comment:
Inside composite-id it simply ignored <hibernate-mapping package="com.nyker.test.hibernate.bookbiz">, so only way get hbm2java to generate correctly with regard to package is to specify full package names inside <composite-id> for each class mentioned.


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.