Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inserting a row in to a table using CMP entity bean( 2.1)  RSS feed

 
veena sasi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am using CMP entity bean using EJB 2.1. I want to insert in to customer table datas id, user_name, submit_date and requested_item. Since there is no primary key in this , i am planning to use auto generated primary key. For inserting data in to tabe where have I to write query ? I understand that( I am not sure on this) I have to use the primary key in the query. How I can do this. i started the bean code as below. COuld anybody help by telling how to specify the query and how that will be executed

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!