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

The Archive Base Latest Questions

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

i googled the phrase lightweight ORM for j2ee and find this page http://java-source.net/open-source/persistence from

  • 0

i googled the phrase “lightweight ORM for j2ee” and find this page http://java-source.net/open-source/persistence from one of results. my goal is to find an ORM Framework that is lighter than Hibernate and also delivers some of hibernates features that are most important to me, for example: auto table generating and lazy initializing, and don’t give me hard time with tables and maps and collection. it is also important that the coming ORM has a community around it which makes it faster to find solutions to errors and bugs. and it also is important that the new orm hides the database from me (needs less sql skills and be more OO).
so far i have narrowed my choices to iBatis (myBatis) and ORMLite.
i want this ORM for my new project which is a desktop application in j2ee, so it is important that the start up time for this orm be less than others (unlike Hibernate which takes a lot of time for first time running specially when you have lots of tables)

thnx

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

    I am afraid that you might have misunderstood concepts. You basically aren’t looking for alternative to Hibernate, but an alternative to ORM.

    Hibernate is one of the very few attempts of proper ORM. Hibernate tries to solve most of of paradigms of object/relational mismatch. Those are:

    • problem of granularity
    • problem of subtypes
    • problem of identity
    • problems relating to associations
    • problem of data navigation

    See Java Persistence with Hibernate for more information.

    To sum up, there is no such thing as lighter ORM. There is either proper ORM solution, or other solutions – like myBatis, where instead of mapping relational model to object model you map SQL statements to objects and methods.

    And don’t forget – you don’t have to use all of Hibernate features. You can quite comfortably mix it with custom SQL, plain JDBC and use only subset of it’s capabilities.

    edit1: about slow startup

    Intermezzo: I am currently working with one propietary ORM solution (not as smart as Hibernate tough) whitch was tuned specially for our application. The biggest issue is also startup, that’s becuase mapping the whole database to objects simply isn’t trivial.

    Now, as for Hibernate. Maybe you know, that Hibernate also generates CRUD SQL statements on startup. If you have big database this can impact performance. But, you can turn off this startup SQL generation and switch
    to dynamic statements generated at runtime.

    Using XML notation, it can be achieved like this:

    <class name="SomeClass"
        dynamic-insert="true"
        dynamic-update="true">
    ...
    </class>
    

    Or with Hibernate annotations:

    @Entity
    @org.hibernate.annotations.Entity(
        dynamicInsert = true, dynamicUpdate = true
    )
    public class SomeClass { ...
    

    edit2: about mixing custom SQL

    The referenced book Java Persistence with Hibernate explains things rather in depth. Chapter 8 is about working with legacy databases and it also gives hints how to alter DML (like with custom SQL, you can even replace CRUD code with custom SQL!) and DDL(generic runtime DDL manipulation). You should peek there 🙂

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

Sidebar

Related Questions

I googled a lot, and could not find a single open source implementation of
Googled for this to no avail. Didn't find anything in the API either. I
I googled around and coulnd't really find an answer. How do I open an
I googled for this for a while but can't seem to find it and
I googled,I checked wikipedia.None of them helped me to find an official java compiler
I googled this a little but couldn't find a good result. Right now I'm
If I knew how to phrase this I could probably find the answer on
Googled everything, but can't find solution for my problem. When i'm trying to deploy
I googled for Drawing text on picturebox C# ,but I couldnt find anything useful.Then
A simple question, perhaps, but I can't quite phrase my Google query to find

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.