Prompt please how to describe attributes xdoclet in the following situation:
/**
* @ejb.bean
* name = "AccessSubject"
* type = "CMP"
* cmp-version = "2.x"
* schema = "accessSubject"
* primkey-field = "id"
* <skip>
* @ejb.persistence
* table-name = "access_subject"
*/
public abstract class AccessSubjectEntity implements EntityBean {
/**
* @ejb.persistence
* column-name = "access_subject_id"
* sql-type = "VARCHAR(32)"
* jdbc-type = "VARCHAR"
* @ejb.pk-field
*/
public abstract String getId();
public abstract void setId(String id);
/**
* @ejb.persistence
* column-name = "login"
* sql-type = "VARCHAR(255)"
* jdbc-type = "VARCHAR"
*/
public abstract String getLogin();
public abstract void setLogin(String login);
}/** * @ejb.bean * name = "Application" * type = "CMP" * cmp-version = "2.x" * schema = "application" * primkey-field = "id"
* <skip>
* @ejb.persistence
* table-name = "application"
*/
public abstract class ApplicationEntity extends AccessSubjectEntity {
/**
* @ejb.persistence
* column-name = "access_subject_id"
* sql-type = "VARCHAR(32)"
* jdbc-type = "VARCHAR"
* @ejb.pk-field
*/
public abstract String getId();
public abstract void setId(String id); /**
* @ejb.persistence
* column-name = "name"
* sql-type = "VARCHAR(255)"
* jdbc-type = "VARCHAR"
*/
public abstract String getName();
public abstract void setName(String name);
}It is necessary to me, what after generation and deployments of the ear have been created the following tables:
table access_subject(
access_subject varchar(32) not null, // primary key
login varchar(255) not null
)
table application (
access_subject varchar(32) not null, // primary key and foreign key on the access_subject.access_subject_id
name varchar(255) not null
)
It is in advance grateful. Andrei Moisseev
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
