Over a million developers have joined DZone.

Annotatiomania™, or Why Did Hibernate/JPA Get So Complex?

DZone's Guide to

Annotatiomania™, or Why Did Hibernate/JPA Get So Complex?

· Java Zone ·
Free Resource

Automist automates your software deliver experience. It's how modern teams deliver modern software.

I was curious about good answers to this question on Stack Overflow:


And a good answer came up, pointing at this Hibernate documentation page:


Is anyone out there actually willing to mess around with gazillions of annotations on simple methods? Who ever writes this stuff:

public class User {
   public String getLastname() { ...}

   public Set<Address> getAddresses() { ... }

public class Address {
   public String getStreet1() {...}

Do some developers despise SQL so much that they’re willing to put up with “annotatiomania”? Whatever happened with the good old

SELECT u.first_name, u.last_name, a.street1
FROM users u
JOIN addresses a ON a.user_id = u.id

Guys. If a technology starts doing things like “@AttributeOverrides”, then something IS smelling fishy

Get the open source Atomist Software Delivery Machine and start automating your delivery right there on your own laptop, today!


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}