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