• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
reply
    Bookmark Topic Watch Topic
  • New Topic