• Post Reply Bookmark Topic Watch Topic
  • New Topic

BO with JPA/Hibernat + Spring  RSS feed

 
phelen harg
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,
I'm starting an app with JPA. I have my entities and the managers that list the itens in db, save and update the entity in db. My doubt is where i should put the BO. My controller jsf, will call the BO when necessary and the BO calls the manager and persist data? Can you show me an sample about it? Thanks....
 
Vijitha Kumara
Saloon Keeper
Posts: 3999
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!
My doubt is where i should put the BO.

What you mean by *where* here? Are you talking about any design/architecture or something else?
 
phelen harg
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to understand the architecture of the project that I'm now responsable.

Currently we have this architecture:




Manager:


And we are instructed, if had Busness Logic, to put them into CompanyFacade. But what I understand by facade it didn't implement Business. I'm correct? How can I implement the Business Logic in my architecture? I think that if i need some more complicated business logic that needs to comunicate itself with other classes I can create the CompanyBO and by the ManagerBean I call the Facade and it will call the other classes like CompanyBO or the entity Employee. Can you show me an example of how to do it correct?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!