This content has been marked as final.
Show 1 reply
-
1. Re: Which approach to fully access EJB3 Entities from within
icordoba Jun 15, 2007 9:12 PM (in response to icordoba)Just one comment. The only solution I've found is adding @transient properties to the EJBs with the following structure:
@Transient public List<CMTextblock> getTextblocksList() { ArrayList<CMTextblock> list = new ArrayList<CMTextblock>(); list.addAll(getTextblocks()); return list; }
This way I can get multiple Eager getters for onetomany relations, but makes JSTL writer need to think if he must use, in this case, ${article.textblocks} or ${article.textblocksList} depending on if he'll use EL or just regular JSTL iteration (c:forEach, ...)