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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:57:53+00:00 2026-05-26T16:57:53+00:00

I am developing a new web application with Struts2, Spring and Hibernate as its

  • 0

I am developing a new web application with Struts2, Spring and Hibernate as its core building blocks.

We have created POJO classes with respect to hibernate mapping files.There will be some inputs from users which needs to be updated in to the underlying database

e.g registration or updation.

We have few option like creating new POJO/DTO for action classes which will be filled by the Struts2 and than we can transfer them to the service layer where we can convert those DTO to the respected hibernate POJO else we can expose same POJO to struts2 so that the framework can fill them with the user input and we need not to do the work for conversion and creating extra set of classes.

Application will be not big in size and will have a medium size application tag.

My question is what is the best way to transfer this user input to underlying hibernate layer to perform data base specific work.

Thanks in advance

  • 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-26T16:57:53+00:00Added an answer on May 26, 2026 at 4:57 pm

    I’d prefer the “DTO” approach in this case since you then can validate the input first and trigger updates only when wanted.

    However, you could use detached entities as DTOs and reattach them when you want to create or update them. If you don’t want the web part of your application to depend on Hibernate and/or JPA you might need to create another set of classes (unless you don’t use a single annotation).

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

Sidebar

Related Questions

we have a production site like www.Domain1.com, and developing a new web application www.domain2.com,
When developing a new web based application which version of html should you aim
I'm developing a web application for a new service, starting from Firefox 3.5. The
I am developing a web application using Spring JS and Dojo Toolkit. In this
I am developing a centralized web application, and I have a centralized Mercurial repository.
I am developing a web application about books. We all knows that books have
If any one want to start developing new web application with real cool and
I'm currently developing a new web application. This is the first time I'm using
My team is developing a new DotNetNuke web application and would like to know
Good Morning All, I am developing a new ASP.net MVC web application. Part of

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.