Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6726463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:55:50+00:00 2026-05-26T09:55:50+00:00

Currently I am working on a project with Spring web-service, hibernate and JAXb. 1)

  • 0

Currently I am working on a project with Spring web-service, hibernate and JAXb.

1) I have generated hibernate beans using IDE ‘hibernate code generation,

2) also, I have generated the jaxb beans using maven compiler.

..

Now, my question is,

1) Is this the right approach? (to have so many beans).

2) Shall I use JAXb beans for processing into the service layer? How can I keep layers decoupled?

3) Or, do I need to create another set of beans ie. map (JAXb beans) to (new beans) to (hibernate beans)?

.

Please tell your views?

Thanks,
adi

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:55:51+00:00Added an answer on May 26, 2026 at 9:55 am

    You know, you cannot have everything fully decoupled. There will be always a layer that will know the other two layers.

    Usually when I design 3 layers architecture, like:

    1. Service Layer – the one that probably uses JAXB, exposes web services or other APIs
    2. Business Layer – any real logic
    3. Persistence Layer – hibernate

    I allow the Business layer to know about the Service Layer (JAXB) and about the Persistence Layer (hibernate beans). But I don’t allow the Service Layer and the Persistence Layer to know about each other.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am working on project like web analytic using rails 3.2.3 I have
Im currently working on a grizzly, spring and jersey project and i have encountered:
I'm working on code for a Java project, I currently have replaceAll(String, int) in
I'm currently working on a Java web project (Spring) which involves heavy use of
I am currently working on some web dev project in Java, i have implemented
I'm currently working on a Windows Service Project. I have added a reference to
I'm currently working on a project where we have a Java web app bought
I am currently working on a project about calculations.I have done the main part
I am currently working on android project where I am using a custom list
I am currently working on grails project. I have created eight different plugins. Each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.