"Hibernate"-ing maps



Hi!

I'm using Java + Hibernate for data persistence, but I'm stuck on
hibernating second-order collections (collection of collections). I
asked this on Hibernate User Forum but got no response. What I'm trying
to do is this:

class Exam {
...
private Map<Room,List<Student>> schedule = new HashMap<Room,
List<Student>>(50);
...
}

Exam, Room and Student are all entitys, with their ID-s. Although
database model for storing "schedule" is trivial:

create table schedule (
exam_id bigint not null,
room_id varchar(30) not null,
list_index integer not null,
student_id varchar(30) not null,
primary key(exam_id, room_id, list_index)
);

I don't know how to tell Hibernate to create/use it. I dont directly
write hibernate xml descriptors, but use X-doclet for this task. So, if
anyone can tell me what X-doclet tags to write on getSchedule() method?

Thanks!

PS. If hibernate does not support this, that would also be valuable
information...

.



Relevant Pages

  • Re: Possible to disable logon after hibernate in XP Home?
    ... I schedule my computer ... hibernate after my recording. ... "Prompt for password on resume from hibernate/suspend"). ... Go to Control Panel and double click Power Options. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Computer being started by schedule from hibernate?
    ... Hibernate does not completely power down the PC. ... started back up with one key/click/button or by a schedule. ... What mechanism does it have for turning itself on if the CPU ...
    (microsoft.public.windowsxp.hardware)
  • Re: Computer being started by schedule from hibernate?
    ... > Hibernate does not completely power down the PC. ... > started back up with one key/click/button or by a schedule. ... > to power down the PC, ... >> Our desktop computer running XP Home is turning itself on at 1:00 in the ...
    (microsoft.public.windowsxp.hardware)