• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with not null fields

 
Venkataramu Pendiyala
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have table like this
create table mytable
( Sno number(3) ,
Sno1 number(3) ,
Sno2 number(3),
fname varchar2(10) not null,
lname varchar2(10)not null,
primary key (sno,sno1,sno2))
which contains some data.
CMP is created from this table. I have tested this bean through VAJ Test environment .
1. Invoked FindByPrimarykey()
2. then called setFname(), setLname()
but these methods are not working.i.e. database is not getting updated. no exceptions. I am using VAJ3.5.
pls help to solve this problem
 
Venkataramu Pendiyala
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i got the solution .
1. set the transaction attribute as Read_Committed.
2.Override ejbCreate() , initialize not nulls columns.
3.set Readonly property for getXXX()( not for setxxx())
Thanks,
Venkat.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!