How can i write a xdoclet to generate the primary key class for a cmp entity bean
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Reene_Xu
Posted On:   Tuesday, June 21, 2005 05:21 AM

I have a table like this create table selectCourse( sno number(8) references students on delete cascade, cno number(5) references courses on delete cascade, primary key(sno,cno)); how can i write the xDoclet? Like this? * @ejb.pk * class="bean.selectCoursePK" * role-name = "sno,cno" * generate = "true" * unchecked = "false" but it can not generate a primary key class with the attribute sno and cno    More>>
I have a table like this


create table selectCourse(

sno number(8) references students on delete cascade,

cno number(5) references courses on delete cascade,

primary key(sno,cno));







how can i write the xDoclet?

Like this?




* @ejb.pk
* class="bean.selectCoursePK"

* role-name = "sno,cno"

* generate = "true"

* unchecked = "false"





but it can not generate a primary key class with the attribute sno and cno
   <<Less
About | Sitemap | Contact