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

  • Home
  • SEARCH
  • 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 6216777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:18:38+00:00 2026-05-24T07:18:38+00:00

Should a business application rely on a generic method called saveOrUpdate from the remote

  • 0

Should a business application rely on a generic method called “saveOrUpdate” from the remote client to the hibernate persistence layer?

Background: Our architect argues, that if the amount of use cases in the application are too many or not really determinable, it is ok to go generic over all. As you suggest I am not with him. How are you?

  • 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-24T07:18:38+00:00Added an answer on May 24, 2026 at 7:18 am

    If you’re doing that, you’re migrating your business logic into the client, plain and simple. That’s not necessarily a bad thing; look at the HATEOAS requirement of REST, for example, for a situation where that’s appropriate. However, if you’re trying to do this, you’re breaking the paradigm that the server must be stateless; if the client specifies the “saveOrUpdate“, then you’re making the assumption that the server is maintaining state beyond the current session, which is architecturally a problem if you’re ever going to want to scale your servers horizontally. Essentially, if you’re driving state from the client properly (as in a HATEOAS situation), your saves will occur as the requests are made, and you won’t need a “saveOrUpdate“; if you really need that from your client, it’s an indication that you’ve improperly migrated your business logic to the client.

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

Sidebar

Related Questions

For a typical business application, should the focus be on client processing via AJAX
I'm developing a server that should receive nightly reports from hundreds of business units.
Where in code should conversions be done? client, server, business, or db? We currently
I have a service, business and data access layer. In which layer should I
When using the facade design pattern to structure an application's business EJB layer, why
I read from here: http://www.dotnetjohn.com/articles.aspx?articleid=287 the Controller represents the application's business logic. The Model
Background Given that 'most' developers are Business application developers, the features of our favorite
My application collects business data from various sources, aggregates it, groups and filters, and
Should a business object contain a reference to other objects (as in the id
I think that business logic should exist in a model when using an MVC

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.