Simple Java Object Relational Mapping
Power without complexity.
Simple adj. 1. Easy to understand, deal with, use etc. 2. not elaborate or artificial. 3. unaffected, unassuming. 4. not complex or complicated. [Macquarie Dictionary].
Note This project is now dormant. The code works, and is a
much better approach to ORM than other overly complex solutions like
Hibernate. Moreover, I do not know any good alternatives.
However, I no longer have time to maintain it. The code is simple
and transparent, and someone else is welcome to take it over.
SimpleORM provides similar functionality to Hibernate by mapping data in a relational database to Java objects in memory. Queries can be specified in terms of Java objects, object identity is aligned with database keys, relationships between objects are maintained and modified objects are automatically flushed to the database with optimistic locks.
But unlike Hibernate, SimpleORM uses a very simple object structure and architecture that avoids the need for complex parsing, byte code processing etc. SimpleORM is small and transparent, packaged in two jars of just 79K and 52K in size, with only one small and optional dependency (Slf4j). (Hibernate is over 2400K plus about 2000K of dependent Jars.) This makes SimpleORM easy to understand and so greatly reduces technical risk.SimpleORM version 3.* is a major upgrade that provides a distinct DataSet component while simplifying record definitions.
See the SimpleORM White Paper / tutorial for a full description of how SimpleORM works.
Download SimpleORM sources.
All inquiries, suggestions or offers of assistance most welcome.
Contact Anthony Berglas info@SimpleORM.org .
Many programmers are clever enough to write clever code, a few programmers are clever enough not to.
No XML, no reflection, no annotations. It's simply typesafe java code. It's easy to use. Because it is open source and the amount of source code is rather small, there will be always somebody who will maintain the software. The dataset component is independent from the jdbc-component. -- Thomas Leichner
Additional Keywords: hibernate Java Simple ORM O/R mapping map mapper JDO JPA