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 4097106
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:07:52+00:00 2026-05-20T20:07:52+00:00

We have a medium sized Java server that has data flowing in the following

  • 0

We have a medium sized Java server that has data flowing in the following way:

SQL Database -> Data Layer -> Business Layer -> XML Serialization

It’s important to note, that the data model mostly does not change between the layers. Yet I have been told that having a single data model used as:
SQL Database — (IBATIS) -> Model -> convert the model to XML – is not a good idea, since schema changes mean changes in the model and then change in all layers in the application. And XML changes also mean the model has to change.

So is it recommended to have two object layers in this case? 1) Business logic data layer that the business schema maps to using IBatis. 2) XML layer that JAXB uses to convert to XML.

  • 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-20T20:07:53+00:00Added an answer on May 20, 2026 at 8:07 pm

    Note: I lead EclipseLink JAXB (MOXy), and EclipseLink provides both JAXB and JPA implementations.

    I recommend using one data model that is mapped to XML via JAXB, and to the database via JPA.

    schema changes mean changes in the
    model and then change in all layers in
    the application.

    • If the schema change introduces new data then it does affect the model, schema changes that do not introduce new data (change element ordering, add a grouping element) should only affect the mapping metadata.

    So is it recommended to have two
    object layers in this case?

    • If you have two object models then you are going to introduce a layer that converts between the object models. This involves another library you need to deal with, and more code that you need to maintain. A change to your schema now affects your object model, and your object conversion layer. This is a similar impact to the one object model scenario.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several medium-sized data sets in-memory that I need to be able to
I have inherited a medium sized database that we are trying to use with
I have a medium sized WinForm App ( 1 Form that hosts 40 user
I have a few medium-sized Rails apps that I work on routinely, and only
I have a JAR on the build path of a medium sized Java application
We have a medium sized application that depends on several usercontrols, namely: A tablelayout
currently I have a medium sized MVC project with multiple controllers that support paging
I have inherited a medium sized project that I would like to add an
I'm currently maintaining a small-medium sized java web application (using only plain JSPs/Servlets) that
I have a question regarding exceptions in a medium-sized Java web application. There is

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.