1 Reply Latest reply on Apr 23, 2013 10:05 AM by Adam Warski

    auto generated pojo from hibernate Persistance

    Ganesh Neelekani Newbie

      Hi All,

       

       

      I have persistance.xml contains required classes .Is there any option or command to generate respective pojo.

       

      ex

      <?xml version="1.0" encoding="UTF-8"?>

      <persistence version="2.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_2_0.xsd">

          <persistence-unit name="LDIFacts">

              <non-jta-data-source>java:jboss/datasources/ORACLEDS</non-jta-data-source>

              <class>com.ldi.facts.Currency</class>

              <class>com.ldi.facts.Edition</class>

              <class>com.ldi.facts.Manufacturer</class>

              <class>com.ldi.facts.ManufacturerMargin</class>

              <class>com.ldi.facts.ManufAttribute</class>

              <class>com.ldi.facts.ManufAttrDef</class>

              <class>com.ldi.facts.Metric</class>

              <class>com.ldi.facts.Product</class>

              <class>com.ldi.facts.Productoption</class>

       

      i want to generate pojo namly currency,edition etc

       

       

       

      Regards

      Ganesh Neelekani

      India