• Post Reply Bookmark Topic Watch Topic
  • New Topic

Use non-unique PK in CMP Entity Bean

 
Ellis Huang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I use a table A' for log table A,like this.
table A(Entity Bean A)
col1
col2
table A'(Entity Bean A')
N_col1
O_col1
N_col2
O_col2
Log_date
I want it like database trigger to log new data
and old data.
I write some code in Bean A's ejbRemove,ejbCreate, and a setData method
to do log like on-deleting,on-inserting, and on-updating.
My question is
1)Because log table A' has no PK,I give N_col1 to
be PK,but it is not unique,i'm afraid container
will confuse.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!