-->
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: select where array contains ...
PostPosted: Fri May 28, 2010 11:23 am 
Newbie

Joined: Thu May 27, 2010 3:11 pm
Posts: 2
Hi everybody,
I try to select only the Messages which contain a certain User in the receivers array.
If possible I'd like to use hibernate Criteria.

Message.java:
private var _body:String;
private var _date:Date;
[ArrayElementType("com.marqueecorp.flexagroup.File")]
private var _files:Array;
private var _head:String;
private var _id:int;
[ArrayElementType("com.marqueecorp.flexagroup.User")]
private var _receivers:Array;
private var _sender:User;

User.java:
private var _activated:Boolean;
private var _id:int;
public var mailAddress:String;
public var name:String;
private var _password:String;

Could you please help me.


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.