LCDS + Hibernate + Custom Assembler

Avatar

Avatar

ZachC_FedEx

Avatar

ZachC_FedEx

ZachC_FedEx

14-07-2009

I am working on a LCDS based Flex application that has an existing Java back-end that is built using Hibernate annotations and Spring enabled services (DAOs). I have tried 3 different ways of working with our backend but I need one that will allow for use with Hibernate models and our existing

  1. Sucessfully built a prototype that uses the HibernateAnnotationsAssembler, but that bypasses our Service layer (not acceptable).
  2. Created an custom Assembler that extends AbstractAssembler and tried using it, it finds the fill method and performs the service calls that load the Hibernate objects but Spring commits the transaction and LCDS goes to load one of the lazy references throws a 'org.hibernate.LazyInitializationException:could not initialize proxy - no Session'. 
  3. Attempted to extend the HibernateAnnotationsAssembler but then nothing works at all.  I get the following error 'There was an unhandled failure on the server. null'.

Are there suggestions on how I can accomplish using Hibernate and our existing service layer?

Replies

Avatar

Avatar

Michael_Chaize

Employee

Avatar

Michael_Chaize

Employee

Michael_Chaize
Employee

17-08-2009

I think that SpringSource is working on a distribution that includes LCDS and that should answer your needs.