Can i write business logic methods in entitybean?

Answer Posted / madan

Entity beans are used to communicate directly with database, here we have setter and getter, each getter is represented with specific id., for example

@Column(name="id")
public String name()
{
return id;
}

this way..

the business logic is maintained Databasefile.java, which contains logics for the communication

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an ejb container?

532


Can an ejb send asynchronous notifications to its clients?

544


Why do we use ejb?

526


how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?

2455


How does ejb invocation happens?

559






What is stateless session bean?

556


What is the difference between find and select methods in ejb?

541


How to import ejb project in eclipse?

581


What optimization could I use if the ejb container is the only point of write access to the database?

575


What is @autowired required false?

586


Which is the only method defined in the javax.ejb.handle interface?

637


What is mdb?

554


Are entity beans allowed to create() methods?

589


What is ejb in java?

540


What is ejb container in java?

520