JPA is the foundation of EJB. EJB is not yet getting started, but it must be learned. The extent to which EJB is applied from TC is that the technology is widely used in large applications.
Although it was a failure this time, Orm.xml still did not fully understand how to write. But write what you know. HelloWorld example from <java persistence with hibernate>
First, the Persistence.xml file.
XML code
<persistence 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 "version=" 1.0 "> <persistence-unit name=" events_event "> <provider>o rg.hibernate.ejb.hibernatepersistenceprovider> <class>Holidayclass>--> <properties> ;p roperty name= "Hibernate.show_sql" value= "true"/> <property name= "Hibernate.format_sql" value= "true"/> & Lt;property name= "Hibernate.connection.driver_class" value= "Oracle.jdbc.driver.OracleDriver"/> <property nam E= "Hibernate.connection.url" value= "Jdbc:oracle:thin: @localhost: 1521:tctest"/> <property "
Hibernate.connection.username "value=" root "/> <property name=" Hibernate.connection.password "value=" GG "/> <property name= "Hibernate.dialect" value= "Org.hibernate.dialect. Oracledialect "/> properties> persistence-unit> persistence>
Next is the Orm.xml file, its own component is not done, but HelloWorld still no problem