We managed to solve this issue by adding the resource-ref to the web.xml and by updating the persistence.xml generation template (datasource jndi config moved to the more.xml).
Sorry for my late reply! BR Levente levib wrote: > > Is this issue solved now? We are facing the same issue, and annotating the > "save" service method doesn't helps us neither... > Please help!!! > We are using the 1.8 version of sculptor with a customized web layer. > > Thanks and regards! > > > deepshar027 wrote: >> >> Well , I think in that sense its a bug.I think there can be a >> configurable parameter if we want to support transactions and then >> sculptor should add that on the service methods. >> I am using spring-jpa (No EJB's) >> >> >> >> Patrik Nordwall wrote: >>> >>> Hmm, but do you think this is a bug in sculptor? You should not have to >>> add transactional attribute, that should be handled by generated >>> code/configuration by sculptor. >>> What target configuration are you using? ejb+spring? >>> >>> /Patrik >>> >>> >>> deepshar027 wrote: >>>> >>>> Patrik, >>>> >>>> Actually I wasnt getting any error and so I thought it could be some >>>> flushing issue. >>>> I read on a forum that data gets saved if inside a transaction.I put >>>> the transactional attribute on the service class and the data got saved >>>> in DB. >>>> >>>> Thanks, >>>> DS >>>> >>>> >>>> Patrik Nordwall wrote: >>>>> >>>>> The transaction boundary is at the service layer. Flush is normally >>>>> done when there, so if you are debugging in repository or data access >>>>> it is not flushed until returning from the service. What do you mean? >>>>> Isn't it stored at all? Any exceptions? >>>>> >>>>> /Patrik >>>>> >>>>> >>>>> >>>>> deepshar027 wrote: >>>>>> >>>>>> Guys, >>>>>> >>>>>> I am trying to save an entity using JPA/hibernate.I see the correct >>>>>> data in session but the save() is not saving the data in the Oracle >>>>>> DB. >>>>>> >>>>>> I think there is some issue with the data not getting flushed to DB. >>>>>> >>>>>> Please help! >>>>>> >>>>>> DS >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/Saving-data-to-oracle-DB-issue-using-JPA.-tp25739491s17564p28533231.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer