Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

LCDS + Hibernate + Custom Assembler

Avatar

Avatar
Level 1
ZachC_FedEx
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ZachC_FedEx
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
ZachC_FedEx
Level 1

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
Validate 1
Employee
Michael_Chaize
Employee

Like

1 like

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Employee
Michael_Chaize
Employee

Like

1 like

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Michael_Chaize
Employee

17-08-2009

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