-->
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: Need help on a problem
PostPosted: Wed Jan 09, 2008 5:13 pm 
Newbie

Joined: Wed Jan 09, 2008 4:56 pm
Posts: 1
Hi All,

I have a question regarding hibernate for my weird problem.
Here is my problem.

I have a table

ID | paramname | paramvalue
---------------------------
1 | userName | test
2 | password | testpassword
3 | ipAddress | 127.0.0.1
4 | url | http://test.com


And I have 2 different calss to load this information

1. User class
-------------

public class User{
String userName;
String password;

// getters & Setters
}


2. Site class
--------------

public class Site{
String ipAddress;
String url;

//getters and Setters
}



So my question is there any way we can map these object to the table. I didn't see anything that help in mapping Column VAlue to object Ids. Please forgive me I asked you a stupid question.

Thanks ,
Sargam


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.