Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [EJB 3.0] - Re: Which approach to fully access EJB3
 Entities from within

scott.stark@jboss.org

2007-06-15


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, ...)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054932#4054932

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054932
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.