Hi,
If you want to load your Entities (with or without Seam component) from a seperate JAR
then you should register those entities in your persistence.xml file like this:
| <persistence-unit name="4cWebDatabase"
transaction-type="RESOURCE_LOCAL">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <class>com.fpc.carconfig.frontoffice.entity.Allocation</class>
| <class>com.fpc.carconfig.frontoffice.entity.LoginData</class>
| <class>com.fpc.carconfig.frontoffice.entity.EndUser</class>
| <class>com.fpc.carconfig.frontoffice.entity.TestClass</class>
| <class>com.fpc.carconfig.frontoffice.entity.UserData</class>
| <class>com.fpc.carconfig.frontoffice.entity.Offer</class>
| <properties>
| <property name="hibernate.hbm2ddl.auto"
value="update"/>
| <property name="hibernate.show_sql"
value="true"/>
| <property name="hibernate.cache.provider_class"
value="org.hibernate.cache.HashtableCacheProvider"/>
| <property name="hibernate.dialect"
value="org.hibernate.dialect.SQLServerDialect"/>
|
|
| </properties>
| </persistence-unit>
|
Hope this helps.
http://techieexchange.wordpress.com
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122096#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...