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

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

 
kri shan
Ranch Hand
Posts: 1489
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to map Entity Bean with the Stored Procedures (or) complex Schemas ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • 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".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!