I have following POJOs:
class Month {
long id;
String description;
List<Day> days; // always contains 29, 30 or 31 elements
}
class Day {
byte nr; // possible values are 1-31
String info;
}
Is there a way to store these objects into following DB structure using JPA+Hibernate:
Table MONTHS:
id;description;
Table DAYS:
id-of-month;nr-of-day;info;
Any better solution for this situation?