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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:35:00+00:00 2026-06-10T20:35:00+00:00

At work I’ve been using our in house ORM (pre 2000) and we’re looking

  • 0

At work I’ve been using our in house ORM (pre 2000) and we’re looking at moving to another ORM solution for our java, however there are some specific requirements. Does anyone know any form or ORM that supports these requests?

  1. Support for inheritance: In our java we have quite a deep inheritance structure and currently if I add an attribute to a class at the “top” then I have to manually edit the ORM procedure (in SQL) to add the new class for each of the sub classes

  2. Support for decorator tables: A few of our classes need to be able to store any (user provided) attribute against a particular object, currently this is just a table that matches Item Id to a row containing FieldName and FieldValue and we pull all of these in as attributes. See below for a better explanation.

  3. Object persistence inbuilt, so objects are only loaded and written to/from the database when requested and otherwise are left in memory. Would also be great if any changes could be automatically saved when you finish, rather than having to call .save() (though potentially dangerous?)

  4. As usual, easy to use (preferably – isn’t this what we all want?) and good performance

Thanks for your time, happy to update the question with what we chose and why and some hints we discover while implementing!


Further explanation of #2:

(please don’t ask why it has to be like this, changing it is “out of scope” of this project)

Item table:

ItemId | Type  | Price
-------|-------|-------
1      | Mouse | 9.99
2      | Dog   | 12.99

Decorator table:

ItemId | FieldName | Value
-------|-----------|-------
1      | Age       | 12
2      | Breed     | Blue Long Hair
2      | Name      | Fluffy 

Item Objects:

Item1
  ItemId -> 1
  Type -> Mouse
  Price -> 9.99
  Age -> 12

Item2
  ItemId -> 2
  Type -> Dog
  Price -> 12.99
  Breed -> Blue Long Hair
  Name -> Fluffy
  • 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-06-10T20:35:02+00:00Added an answer on June 10, 2026 at 8:35 pm
    1. JPA (and thus Hibernate) support inheritance.
    2. I don’t quite understand what you mean
    3. JPA/Hibernate, by default, leave objects in memory for the duration of a transaction. Each transaction has its own copy of the object, and this first-level cache is recreated at the beginning of each transaction, since any other concurrent transaction (or even another application) could have modified the object. There is no destructor in Java, so I don’t understand what you mean. But at the end of the transaction, by default, every change to an entity is automatically saved to the database.
    4. If you read the documentation and takes the time to understand how it works, then JPA/Hibernate is relatively easy to use. But it has it learning curve. The performance is OK in 95% of the typical use cases, as long as you understand what the ORM does behind the scenes.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

work on SQL Server 2000. want to Automated Email Notifications using SQL Server Job
At work our end-users are on Windows XP and using Outlook Express. Whenever a
At work we are currently still using JUnit 3 to run our tests. We
I work with a client that is using purchase orders, and a custom order's
work on Sql server 2000. i want to get the current server date and
I work for a very large organization that is looking for new ideas. Currently
I work in a place where each of our internal applications runs on an
We're building an app, our first using Rails 3, and we're having to build
I work on a desktop application and I send frequent betas to testers using
I work on writing the excel Add-In using Excel Interop. I want to get

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.