This content has been marked as final.
Show 2 replies
-
1. Re: Initializing a new entity bean with relations
treespace Mar 28, 2006 12:13 AM (in response to treespace)First part of answer is you can use any old list since otherwise it's not a POJO. Second, you initialize your own collections or pre-check for null. Pre-initializing is the lesser of two evils.
-
2. Re: Initializing a new entity bean with relations
epbernard Mar 30, 2006 7:33 PM (in response to treespace)I usually do
private List<Book> books = new ArrayList<Book>();