I am switching from Glassfish / toplink To JBoss / Hibernate.
For this project I dl'd the JBoss dev studio ide and installed AS 5.0 GA, and started a new workspace. My code base is on another workspace on which I worked with standard Eclipse 3.4 EE and Glassfish. (am familiar with JBoss semantics from the 3/4.x ejb 2 days.)
I am importing the projects into the new JBoss workspace, and removing Glassfish stuff and replacing with JBoss. No sweat.
Am also switching to Hibernate from toplink.
1. Can I expect my code to run outta the box?
2. Can anyone please give me the hibernate equivalent of the following persistence.xml?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="OldserverDerbyLogtrak" transaction-type="JTA">
<description>On Oldserver, in the same dir where you have the ezjpa database.</description>
<jta-data-source>jdbc/ezLogtrkOldserver</jta-data-source>
<properties>
<property name="toplink.target-database" value="Derby" />
<property name="toplink.logging.level" value="FINE" />
<property name="toplink.ddl-generation" value="drop-and-create-tables" />
<!--<property name="toplink.ddl-generation" value="none" /> -->
</properties>
</persistence-unit>
</persistence>
3. Do I enable Hibernate 3.0 support on the projects?
Thank you much.
natG