H***@lsg.vanderlande.com
2004-02-27 09:27:03 UTC
Hello,
the generated bean contains the following line:
public abstract class ContainerBean implements javax.ejb.EntityBean {
The javax.ejb.EntityBean interface requires the following methods and they
are not part of the generated code.
void ejbActivate()
void ejbLoad()
void ejbPassivate()
void ejbRemove()
void ejbStore()
void setEntityContext(EntityContext ctx)
void unsetEntityContext()
I don't want to modify the generated code by hand if possible.
How to include these methods?
Thanks
Haug
My ant task looks like:
<target name="generate_ejbs_from_db"
depends=""
description="Run Middlegen" >
<taskdef name="middlegen"
classname="middlegen.MiddlegenTask"
classpathref="middlegen.class.path" />
<middlegen appname="EntityBeanPerformance"
databaseurl="jdbc:oracle:thin:@gam-ora9-dev:1521:ORCL"
driver="oracle.jdbc.driver.OracleDriver"
username="J2EE"
password="xxxx"
datasourceJNDIName="java:/OracleDS"
providerURL="dummy"
initialContextFactory
="org.jnp.interfaces.NamingContextFactory"
gui="true" >
<cmp20 destination="src"
interfacepackage="com.vanderlande.lsg.wms.persistence"
fkcmp="true"
jndiprefix="wms/persistence"
package="com.vanderlande.lsg.wms.persistence"
viewtype="both">
</cmp20>
<table name="CONTAINER" />
<table name="CONTAINERTYPE" />
<table name="DELIVERY" />
<table name="DELIVERYLINE" />
<table name="ITEM" />
<table name="ITEMGROUP" />
<table name="ITEMGROUPATTRIBUTE" />
<table name="LOCATION" />
<table name="LOCATIONGROUP" />
<table name="LOCATIONGROUPMEMBER" />
<table name="LOCATIONTYPE" />
<table name="SKU" />
<table name="TRANSPORTTASK" />
</middlegen>
<mkdir dir="generated/src/middlegen"/>
</target>
the generated bean contains the following line:
public abstract class ContainerBean implements javax.ejb.EntityBean {
The javax.ejb.EntityBean interface requires the following methods and they
are not part of the generated code.
void ejbActivate()
void ejbLoad()
void ejbPassivate()
void ejbRemove()
void ejbStore()
void setEntityContext(EntityContext ctx)
void unsetEntityContext()
I don't want to modify the generated code by hand if possible.
How to include these methods?
Thanks
Haug
My ant task looks like:
<target name="generate_ejbs_from_db"
depends=""
description="Run Middlegen" >
<taskdef name="middlegen"
classname="middlegen.MiddlegenTask"
classpathref="middlegen.class.path" />
<middlegen appname="EntityBeanPerformance"
databaseurl="jdbc:oracle:thin:@gam-ora9-dev:1521:ORCL"
driver="oracle.jdbc.driver.OracleDriver"
username="J2EE"
password="xxxx"
datasourceJNDIName="java:/OracleDS"
providerURL="dummy"
initialContextFactory
="org.jnp.interfaces.NamingContextFactory"
gui="true" >
<cmp20 destination="src"
interfacepackage="com.vanderlande.lsg.wms.persistence"
fkcmp="true"
jndiprefix="wms/persistence"
package="com.vanderlande.lsg.wms.persistence"
viewtype="both">
</cmp20>
<table name="CONTAINER" />
<table name="CONTAINERTYPE" />
<table name="DELIVERY" />
<table name="DELIVERYLINE" />
<table name="ITEM" />
<table name="ITEMGROUP" />
<table name="ITEMGROUPATTRIBUTE" />
<table name="LOCATION" />
<table name="LOCATIONGROUP" />
<table name="LOCATIONGROUPMEMBER" />
<table name="LOCATIONTYPE" />
<table name="SKU" />
<table name="TRANSPORTTASK" />
</middlegen>
<mkdir dir="generated/src/middlegen"/>
</target>