Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Four operations with Entity EJB

 
mhonores
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good afternoon
I am just begining in the EJB.
Now i am able to create EJB's and configure them
The problem is that i need the entity EJB equivalents operations to SQL
commands like these:
INSERT
DELETE
UPDATE
SELECT
And also operations inside transactions
Somebody could send me some code examples?
Thanks
Marcelo
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcelo,
We have a naming policy here at JavaRanch where all publicly displayed names must take the form, "Firstname Surname". Could you please edit your profile to bring yours into line?
Thanks in advance and we hope that you enjoy your stay at the ranch!
Cheers
Simon
 
sandy gupta
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
INSERT - ejbCreate
DELETE - ejbRemove
UPDATE - ejbStore
SELECT - finder methods
If u are using a cmp scheme, then u have to know the ejbql for select and in case u are using bmp, write the sqls u'rself....
HTH
Sahil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic