-->
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: Example queries with composite id
PostPosted: Fri Sep 09, 2005 4:28 pm 
Newbie

Joined: Thu Aug 25, 2005 8:04 am
Posts: 3
Hibernate version: 3.05

Name and version of the database you are using: SQl-Server 2000

Hi,

I like 'query by example' but it seems not to work with composite id
is this right or is there a trick??

for example:


_example.getId().setLanguage( _langISO ); // is ignored

_example.setShortcut( _aShortcut ); // works fine



List result =
.session
.createCriteria( aClass.class )
.add( Example.create( _example ) )
.list();


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.