Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can i write business logic methods in entitybean?

Answer Posted / supraja

One easy way to achieve this is to separate pure business
logic from the persistence mechanism. Implement the
business logic in your CMP class, which can be deployed
alone if CMP is chosen. Then implement the persistence code
into the BMP class, which inherits from the CMP class. This
preserves all the business logic of the CMP superclass and
adds database access code in the BMP subclass,
This model sounds easy to implement but still leaves the
following flexibility inhibitors:
It is impossible to extend the implementation classes.
Doing so means the subclasses must extend both the CMP and
the BMP superclass directly. In addition, the BMP subclass
will have to extend its direct CMP implementation. This
causes multiple class inheritance. Such multiple
inheritance is not allowed in Java programming

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain transaction and various methods to manage it?

1010


Does spring use ejb?

1030


Why should we use ejb?

970


Which is more beneficial: Stateful or Stateless Bean?

1036


Is microservice stateless?

963


Can an ejb send asynchronous notifications to its clients?

1033


What is difference between stateless and stateful?

1055


Why do we use @requestmapping?

1043


What is the purpose of ejb in java?

1111


What are the design principles for ejb?

958


Define EAR, WAR and JAR ?

1073


What do you mean by ejbdoclet?

1108


What are the various types of entrepreneur java bean?

1010


What is the difference between ejbcreate() and ejbpostcreate?

1013


What do you mean by ‘hot deployment’ ?

1118