[jboss-user] [EJB 3.0] - Re: Entity Cache Question

mrohad do-not-reply at jboss.com
Tue Sep 12 03:47:11 EDT 2006


ok , thanks..

I rethought about that and i've 2 more question..

1) I've 2 entities Event and EventText
for each Event there are many EventText

EventText is an entity that I am only inserting(never update/delete) but it hold one Event
and Event is an entity that can be changed once in few weeks , can I still use READ_ONLY for EventText?

2)now what about queries? I would like to query i.e. all Events that contains EventText.type=1 , can I cache this query?
I thought to put TRANSACTIONAL cache on the Event entity and cache this queries , does it make sense? 

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970916



More information about the jboss-user mailing list