i decided to model my db my database using auto_increment IDs for a few tables.
I'm going through a design problem.
Should ONLY my entities EJBs deal with tables ID's on methods or its acceptable to propagate the IDs to session beans and also let them work with the IDs?
Suppose a method the needs to find a house in a db (the pk for the house table is houseid). Basically, i have two options:
- retrieve the houseid in a Session EJB level and, then, getting the specific house
- let the entity EJB work around to get the houseid and the specific house and then return only the house to the session level (in this case would my entity bean be dealling with some business logic?)