-->
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: some question about component's tag:insert="false"
PostPosted: Wed Oct 15, 2003 5:09 am 
Newbie

Joined: Sat Sep 13, 2003 12:47 pm
Posts: 15
Code:
<component class="eg.OperationHandle" name="handle">
   <many-to-one cascade="none" class="eg.UserInfo" insert="false" name="creationUser" update="false">
      <column name="CREATION_USER_ID"/>
   </many-to-one>
   <property name="creationUid" type="java.lang.Long">
      <column name="CREATION_USER_ID" sql-type="INT(10)" unique="false"/>
   </property>


in component , many-to-one 's tag insert="false" update="false" looks like not workwell,
hibernate report:

eg.UserInfo should be mapped with insert="false" update="false": CREATION_USER_ID

but out od component , it is work well, why?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2003 8:12 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yes, according to the dtd:
Code:
  <!ATTLIST property update (true|false) "true">   <!-- only supported for properties of a class (not component) -->
  <!ATTLIST property insert (true|false) "true">   <!-- only supported for properties of a class (not component) -->
  <!ATTLIST property formula CDATA #IMPLIED>       <!-- only supported for properties of a class (not component) -->


This is a pain, but not easy to fix.


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.