Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

problem with not null fields

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
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())
Enjoy the full beauty of the english language. Embedded in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic