-->
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: Query with a list of Criterias
PostPosted: Thu Apr 26, 2007 8:03 am 
Beginner
Beginner

Joined: Fri Nov 03, 2006 6:15 am
Posts: 21
Hello everyone,

Im having an Object "User" which gets mapped through hibernate and gets all the attributes filled.

Now i have an array with fields (the names are actually the same as the DB-column names).

Now my question:

Is it now possible to take this User Bean with data and get the list of criteria fields and create a second array with the values? The number of criterias can be 1 to a maximum of equal to the number of fields in the Bean.Any suggestions to this?

to make it a little bit cleaner:

User entity has Name, Email, Adress, Zip

Now i get an array with the fieldnames "Name","Email"

now, i read out those fields Name and Email and fill them into a second
array so that i end up with a User bean...a fields array and a field values array


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.