• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

BO with JPA/Hibernat + Spring

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic