0 Replies Latest reply on Mar 30, 2006 3:19 PM by Denis Karpov

    Custom SQL statements for create, update, and delete operati

    Denis Karpov Newbie

      Is there any way in EJB3 to specify the different sql for create, update and delete?

      In Hibernate it is something like:

      <class name="Person">
       <id name="id">
       <generator class="increment"/>
       </id>
       <property name="name" not-null="true"/>
       <sql-insert callable="true">{call createPerson (?, ?)}</sql-insert>
       <sql-delete>DELETE FROM PERSON WHERE ID=?</sql-delete>
       <sql-update callable="true">{? = call updatePerson (?, ?)}</sql-update>
      </class>


      Thank you.