Fornax-Platform
Forum

 « Return to Thread: Defining Datasource Properties.

Re: Defining Datasource Properties.

by Patrik Nordwall :: Rate this Message:

Reply to Author | View in Thread

If you are migrating a 1.5 project to 1.6 I assume you have read the migration guide:
http://fornax.itemis.de/confluence/display/fornax/0.+What%27s+New+(CSC)#0.What%27sNew(CSC)-Version1.6.x

We have not completely updated the documentation in the Developer's Guide yet.
All properties are here: https://fornax.svn.sourceforge.net/svnroot/fornax/trunk/cartridges/sculptor/fornax-cartridges-sculptor-generator/src/main/resources/default-sculptor-generator.properties

The property you are looking for is:
generate.jpa.sessionFactorySupport=true
(still jpa annotations, but with SessionFactory.xml instead of persistence.xml)

I think our recommendation is to use sessionFactorySupport=false (as default), but then I don't know how to define the data source as a spring bean.
Oliver, what do you say about this topic?

/Patrik


deepshar027 wrote:
Patrik,

Thanks for that.I have a new problem now which is not related to this thread.
Actually I deleted all my sources from src\generated\resources so that they can be generated again when I run the workflow.

However when I run the workflow again , I dont see SessionFactory.xml ? I guess earlier I was using sculptor version 1.5 and then switched to 1.6 .Is SessionFactory.xml not generated for 1.6?
If its not generated then where should be the datasource defined?

Let me know if there is any documentation available for details on various sources generated.


Rgds,
Deepak.

 « Return to Thread: Defining Datasource Properties.