I think there are a lot of people trying it for obvious reasons. However all evidence would suggest it doesn't work. I really hope Adobe step up to this combination as it is extremely powerful.
I'd be interested to hear from anyone who has a genuine real-world application running with a full CRUD cycle using FDS/Hibernate and anything more than a trivial data model. Maybe I'll start that thread... --- In [email protected], Douglas McCarroll <[EMAIL PROTECTED]> wrote: > > Well, it doesn't seem as though there's a great deal of actual use of > the FDMS/Hibernate option... > > I'm struggling with trying to learn it, but there seem to be some bugs... > > Hey flexcoders, is it possible that no one has attempted to create new > entities using FDMS/Hibernate? > > Douglas > > > > > Carlos Rovira wrote: > > > > Thanks Douglas, > > > > Thanks for the response. > > > > In that case, how people deal with the fact that hibernate expect IDs > > with null value instead of 0? > > Or maybe I'm missing something? > > > > > > > > > > On 1/19/07, *Douglas McCarroll* > > <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > Hi Carlos, > > > > I can't be of much help but I can tell you... > > > > > Or maybe there's a way in FDS2 to configure default value to null? > > > > ... that you can probably forget this option. FDS converts null > > values > > to zero when it converts AS objects to Java objects, and the only > > workaround is to have code on the java side that converts zeros > > back to > > nulls. There are discussions about why this is the case in the > > archive > > if you want to do some searching... > > > > Douglas > > > > ------------------------------------------------- > > > > Douglas McCarroll > > > > CairngormDocs.org Webmaster > > http://www.CairngormDocs.org <http://www.CairngormDocs.org> > > > > Flex Developer > > http://www.brightworks.com <http://www.brightworks.com> > > 617.459.3840 > > > > ------------------------------------------------- > > > > > > > > Carlos Rovira wrote: > > > > > > Hi, > > > > > > I'm switching from Toplink to Hibernate using JPA/EJB3 and > > Annotations. > > > I'm facing a problem with this change due to the fact that when I > > try > > > to persist new entities Hibernate throws a > > > "PersistenceObjectException: Detached entity passed to persist". > > > Hibernate expects new entities with ID = NULL and my new entities > > > reach the hibernate layer with ID = 0. > > > > > > If I were using hibernate xml config files (hbm.xml) I could use > > > "unsaved-value = 0" (for each entity), but I'm using Annotations and > > > there's no "unsaved-value" annotation to use. > > > > > > So, anyone reach this problem? How could I change the default > > > configuration in Hibernate so new entities with ID = 0 will be > > > considered as the default. > > > > > > Or maybe there's a way in FDS2 to configure default value to null? > > > > > > Thanks for any light on this :) > > > > > > C. > > > > > > > > > > > > > > > -- > > > ::| Carlos Rovira > > > ::| http://www.carlosrovira.com <http://www.carlosrovira.com> < > > http://www.carlosrovira.com <http://www.carlosrovira.com>> > > > ::| http://www.madeinflex.com <http://www.madeinflex.com> < > > http://www.madeinflex.com <http://www.madeinflex.com>> > > > > > > > > > > > > > > > > -- > > ::| Carlos Rovira > > ::| http://www.carlosrovira.com <http://www.carlosrovira.com> > > ::| http://www.madeinflex.com <http://www.madeinflex.com> > > >

