-->
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: Tabellen-verknüpfung
PostPosted: Thu Jul 13, 2006 5:28 am 
Newbie

Joined: Tue Nov 15, 2005 10:18 am
Posts: 13
Hallo zusammen,

gibt es eine Möglichkeit, die beiden Criteria zu verbinden:

Code:
Criteria s= pm.createCriteria(Klasse1.class);
Criteria e = pm.createCriteria(Klasse2.class);

s.add(Expression.eq("datum", datum));
e.add(Expression.eq("frage", "J"));


Danke!

LG
Vicky


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 16, 2006 4:53 am 
Beginner
Beginner

Joined: Fri Jul 16, 2004 3:21 am
Posts: 40
Code:
Criteria s= pm.createCriteria(Klasse1.class);
s.createCriteria("klasse2");
s.add(Expression.eq("datum", datum));
s.add(Expression.eq("frage", "J"));


So sollte es funktionieren

gruss stefan


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.