• 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

Four operations with Entity EJB

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic