This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

two ejb questions  RSS feed

 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I encounted two ejb question as follows:
1, I have a table which has some fields must to be "not null", and this table has a primary key. when I make a CMP ejb from this table, the ejb has a ejb_create method with only one parameter(the primary key). so the question is when I use the ejb_create method to create a record, what will happen to those "not null" fields? or I must modify the ejb_create method.
2, I have another table with has a Clob field, because Clob is too boring, I want to change it to the String type, in JBuilder, it's quite simple. but I don't know if this will works well.
any help is appricate.
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you generating CMP EJB? create method of EJB should have all the columns (irrespective of their state - null/not null).If create is not taking these columns you need to add them.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!