-->
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.  [ 4 posts ] 
Author Message
 Post subject: Why does a component inherit the implement meta?
PostPosted: Sat Apr 02, 2005 4:44 pm 
Beginner
Beginner

Joined: Thu Jan 20, 2005 3:25 pm
Posts: 22
I have a component inside a hibernate mapping, and the components seems to inherit the meta inherits from the entity.
Why is that behavior? I'd like my components to have different inherits, how could I do that?

Henri.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 02, 2005 5:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can tell it not to inhert the meta data. See the DTD it should be obvious.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 02, 2005 5:49 pm 
Beginner
Beginner

Joined: Thu Jan 20, 2005 3:25 pm
Posts: 22
david wrote:
You can tell it not to inhert the meta data. See the DTD it should be obvious.


I tried
Code:
    <component name="LI_Pays" class="actualis.web.bo.commande.Pays">
    <meta attribute="implements" inherit="false"/>
    <meta attribute="implement-equals" inherit="false">true</meta>
    <property
        name="pays"
        type="java.lang.String"
        column="pays"
        length="35"
    >
    </property>
    </component> 


But still the meta data comes for my component and it tries to implement the entity interfaces.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 02, 2005 7:20 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the inherit attribute should go on the meta attribute that you dont want to inherit.

what you are doing is to define a meta attribute on the component which then is not inherited by its properties.

_________________
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.  [ 4 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.