-->
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.  [ 6 posts ] 
Author Message
 Post subject: Can Example.create() create a column?
PostPosted: Wed Jan 14, 2004 4:52 am 
Regular
Regular

Joined: Wed Dec 03, 2003 9:41 pm
Posts: 87
I used Example.create(a table model), it is ok. Can I use Example to specialize a column?
e.g.
Example.create("loginName")
When I run this, h2 throws Exception:
IllegalArgumentException in class: h2test.test.SysUserModel, getter method of property: workId

net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of h2test.test.SysUserModel.workId

at net.sf.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:110)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2004 5:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
use Example.create(class).excludeProperty() or Example.create(class).setPropertySelector(...)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2004 10:54 pm 
Regular
Regular

Joined: Wed Dec 03, 2003 9:41 pm
Posts: 87
gloeglm wrote:
use Example.create(class).excludeProperty() or Example.create(class).setPropertySelector(...)

how to use Example.create(class).setPropertySelector(...)?
how to create PropertySelector?It is an interface, I don't find a way to create an instance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 9:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well, implement the interface, using a inner class or anonymous class or whatever.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2004 2:34 am 
Regular
Regular

Joined: Wed Dec 03, 2003 9:41 pm
Posts: 87
Can attrubite out-join exist in element set?
I wrote xml as the following:
<set name="bidPackage" lazy="false" outer-join="true">
<key column="BID_ID"/>
<one-to-many class="com.bsteel.baointl.interbid.model.BidPackageModel"/>
</set>
But h2 throws Exception:
Error parsing XML: XML InputStream(11) Attribute "outer-join" must be declared for element type "set".

I used h2.1 rc1


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2004 2:36 am 
Regular
Regular

Joined: Wed Dec 03, 2003 9:41 pm
Posts: 87
Sorry, post wrong place above.

Thank you gloeglm.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.