Werblogic 9.2 ejbGEN

i am tryinng to create EJB CMR relations using @Relations using annotations

but i am unable to get Descriper files

find the code

package com.ft.bigben.entitybeans;

import javax.ejb.CreateException;

import weblogic.ejb.GenericEntityBean;

import weblogic.ejbgen.CmpField;

import weblogic.ejbgen.CmrField;

import weblogic.ejbgen.Constants;

import weblogic.ejbgen.Entity;

import weblogic.ejbgen.FileGeneration;

import weblogic.ejbgen.JndiName;

import weblogic.ejbgen.LocalMethod;

/**

* <code>GenericEntityBean</code> subclass automatically generated by Workshop.

*

* Please review and update the existing content to ensure it matches your

* intended use (esp. the Entity and JndiName annotations and the primary key field,

* ejbCreate() and ejbPostCreate() methods).

*/

@Entity(maxBeansInCache = "1000",

dataSourceName = "BigBenDataSource",

transTimeoutSeconds = "0",

ejbName = "Bb_prodmgr_US",

reentrant = Constants.Bool.FALSE,

concurrencyStrategy = Constants.ConcurrencyStrategy.DATABASE,

delayDatabaseInsertUntil = Entity.DelayDatabaseInsertUntil.EJB_CREATE,

tableName = "Bb_prodmgr",

readTimeoutSeconds = "600",

dbIsShared = Constants.Bool.TRUE,

primKeyClass = "java.lang.String",

defaultTransaction = Constants.TransactionAttribute.SUPPORTS)

@JndiName(local = "ejb.Bb_prodmgr_USLocalHome")

@FileGeneration(localClass = Constants.Bool.TRUE,

localHome = Constants.Bool.TRUE,

localHomeName = "Bb_prodmgr_USLocalHome",

remoteClass = Constants.Bool.FALSE,

remoteHome = Constants.Bool.FALSE,

localClassName = "Bb_prodmgr",

valueClass = Constants.Bool.TRUE,

valueClassName = "Bb_prodmgr_USValue")

@Relations({

@Relation(cmrField="inventor",

name="Bb_inventor_US-Bb_prodmgr_US",

roleName="Bb_prodmgr_US-has-Bb_inventor_US",

multiplicity=Relation.Multiplicity.ONE,

targetEjb="Bb_inventor_US")

})

abstract public class Bb_prodmgr_US extends GenericEntityBean {

public java.lang.String ejbCreate(String mgrCode) throws CreateException {

setMgrCode(mgrCode);

return null;

}

public void ejbPostCreate(String mgrCode) throws CreateException {

}

@CmpField(orderingNumber = "1", column = "mgr_code", primkeyField = Constants.Bool.TRUE)

@LocalMethod()

public abstract String getMgrCode();

@LocalMethod()

public abstract void setMgrCode(String val);

@CmpField(orderingNumber = "2", column = "is_active")

@LocalMethod()

public abstract String getIsActive();

@LocalMethod()

public abstract void setIsActive(String val);

@CmpField(orderingNumber = "3", column = "mgr_name")

@LocalMethod()

public abstract String getMgrName();

@LocalMethod()

public abstract void setMgrName(String val);

@CmrField(orderingNumber = "4")

@LocalMethod()

public abstract java.util.Collection getInventor();

@LocalMethod()

public abstract void setInventor(java.util.Collection arg);

}

[3225 byte] By [eeshwar_1977a] at [2007-10-3 4:48:32]
# 1
Try the following forum (about EJB technology) http://forum.java.sun.com/forum.jspa?forumID=13
UncleSAMa at 2007-7-14 22:52:59 > top of Java-index,Desktop,Developing for the Desktop...