-->
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: Hbm2java and interfaces with implementers
PostPosted: Sat Feb 28, 2004 12:11 am 
Newbie

Joined: Fri Feb 27, 2004 11:44 pm
Posts: 8
Given the following mapping file, is there a way to force hbm2java to generate two classes Bar and Baz that implement the interface Foo? I see how I can use META tags to force Foo to be an interface, but when I run hbm2java against the mapping file I get an interface Foo and 2 classes Bar and Baz the extend Foo (instead of implementing Foo).

Code:
<class   name="Foo">
    <meta attribute="interface" inherit="false">true</meta>
      
    <id  name="id"  column="id" type="java.lang.Long">
        <generator class="identity"/>
    </id>

    <discriminator   column="subclass" type="character"/>
      
    <subclass
        name="Bar"
        discriminator-value="r">
    </subclass>

    <subclass
        name="Baz"
        discriminator-value="z">
    </subclass>

</class>



Rob


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2004 5:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmmm....add a jira on this one....think it is a bug (or NYI feature ;)

_________________
Max
Don't forget to rate


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.