Skip to content

Category Archives: Java

An Easier Java ORM: Relations

31
Jul
2007

Per request in a comment on the previous article, I’ve decided to devote this post to the subject of relations and how they work in ActiveObjects.
There are two types of relations in database design: one-to-many and many-to-many. In a one-to-many relation, multiple rows in one table usually have a reference to a single row [...]

An Easier Java ORM Part 4

30
Jul
2007

In keeping with my ActiveObjects series, here’s part 4. In this part, we’ll look at schema generation/migration and the ever-interesting topic of pluggable name converters and English pluralization.
One of ActiveObjects’s main concepts is that you (the developer) should never have to worry about the semantics of database design. You should simply be given [...]

An Easier Java ORM Part 3

24
Jul
2007

As a continuation to part 1 and part 2, this article examines a slightly less interesting (though none-the-less important) feature, transactions in ActiveObjects.
I also figured I should give a minor update on the development status. Eelco Hillenius (of the Wicket project) has been contributing some code, fixing up areas where I messed up and [...]

An Easier Java ORM Part 2

19
Jul
2007

Well, by popular demand on the first post, I now bring you the second part in my series introducing the new Java ORM, ActiveObjects. In the first post, I gave some very basic examples of how AO could be used to simplify database access in your application. And while trivially interesting, these examples [...]

An Easier Java ORM

18
Jul
2007

There is no doubt that Hibernate is the dominant ORM for Java applications. There are Hibernate conferences and Hibernate user groups. It even has its own shelf at Barnes and Nobel. However, I have always found it suffering from a fatal flaw: it’s incredibly complex. Even accomplishing the simplest of functionality [...]