• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

map Entity Bean with the Stored Procedures (or) complex Schemas

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to map Entity Bean with the Stored Procedures (or) complex Schemas ?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't map a CMT Entity bean to a Stored Procedure. But there is no technical reason I can think of why you couldn't call stored procedures from a BMT Entity Bean. However, there are plenty of reasons why you shouldn't. For example, one of the (very) few benefits of Entity Beans is they are DB platform indepenant. Stored Procedures however are not, so use them and you remove one of the reasons for using Entity Beans in the first place. Stored Procedures and Entity Beans both kind of cross into each other's territory of concern too. SPs can include business logic - which is a valid thing to do if for example performance is a concern - and so can Entity Beans; using both you will probably be building in unecessary complexity. But perhaps the biggest issue: I can think of no good reason to ever use BMT Entity Beans.

I think you have to explain what you mean by "complex Schemas".
 
reply
    Bookmark Topic Watch Topic
  • New Topic