Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Data Services
Viewing all articles
Browse latest Browse all 58696

Java/Hibernate backend with FDS: issues

$
0
0
Hi everyone, I'm quite new to the Flex world but I'm so excited about all of it that I decided to make a Flex app in order to get my degree. So, I started by building my own app (which is a management system for a library) starting from the great example posted by Marcel Boucher on his blog. I run my app on JBoss 4.2.0-GA.

I'm actually using DB2 8.2 with 6 tables: USER, CUSTOMER, IDCARD, LOAN, BOOK, AUTHOR.

Hibernate-wise, there should be a one-to-one association between CUSTOMER and IDCARD (that is every customer has one and only one idcard), a many-to-many association between IDCARD and LOAN (that is many idcards can do many loans), a many-to-one between LOAN and BOOK and a many-to-one between BOOK and AUTHOR.

The problem is that as long as I implement single POJOs (user.java, customer.java...), correctly mapped with their configuration file user.hbm.xml and hibernate.cfg.xml, and respective destinations configured in data-management-config.xml, BUT WITHOUT SPECIFYING ANY ASSOCIATION, it all runs and works correctly.

As soon as I complete the database's tables mapping by adding all the association mappings (I dont know how to exactly map associations between fds destinations as well) it suddenly goes all wrong and I keep getting this error in JBoss console:

GRAVE: Servlet /flex threw load() exception
flex.messaging.config.ConfigureException: Unable to create service 'flex.data.DataService' for 'data-service' due to the following error: Error instantiating application scoped instance of type 'flex.data.assemblers.HibernateAssembler' for destination 'user.hibernate'...

Hope someone can help me with this.

Cheers,

Riccardo

Viewing all articles
Browse latest Browse all 58696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>