File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Mapping List<Integer> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Mapping List<Integer> " Watch "Mapping List<Integer> " New topic
Author

Mapping List<Integer>

Bala Gangadhar
Ranch Hand

Joined: Oct 07, 2008
Posts: 82
    
    1
Hi Friends,

Can somebody help with hibernate mapping file to map List<Integer>

Example :

Calss Game
int gameId;
String gameName;
List<Integer> playDays;

Tables:
GAME TABLE
GAMEID INT(4)
GAMENAME VARCHAR(10)
....
....
AND PRIMARY KEY IS GAMEID

GAME_DAYS TABLE
GAMEID(4)
PLAYDAY INT(1)

GAMEID,PLAYDAY Together primary key
GAMEID forighn KEY

I know how to map list<objects> like list<student> etc.. but not sure how to map list<String> or list<Integer> can somebody help me...

Thanks
Bala Gangadhar
Ranch Hand

Joined: Oct 07, 2008
Posts: 82
    
    1
Is my question wrong ? or did I post under wrong section ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mapping List<Integer>