Some days ago on the Comtaste's blog we published an article on LiveCycle Data Services and Hibernate integration in Flex RIA applications.
I found an interesting comment that gave us the possibility to goo deep into that topic :
I'm currently investigating the use of LCDS 2.5 and EJB3/JPA and am wondering about a couple of things.
First - would it be likely that in the near future we would have a JPAAssembler class, much like what Jeff has been doing with Hibernate?
Second - if not a JPAAssembler, what would be the best way of wiring data management to JPA?
Third - do I really need a DTO, can't I just 'return' domain objects, and how does this work with lazy loaded instances as set by JPA annotations.
Fourth - conceptually I've been thinking about this quite a lot. Looks to me that datamanagement is specifically geared towards CRUD like applications. But what if the use case at hand requires some more involved server side processing, most likely contained within a JTA transaction. Shoud I instead implement this as a RPC call and thus mix 'n match RPC and DM?
You can read the reply on the next page >>