agentgt / jirm

A Java Immutable object Relational Mapper focused on simplicity, convenience, and thread safety.
Apache License 2.0
66 stars 10 forks source link

Support for @ConstructorProperties #13

Open agentgt opened 11 years ago

agentgt commented 11 years ago

The object definition determination was not finished for @ConstructorProperties.

ronanM commented 11 years ago

"Unfortuanately the JVM has some limitations on reflection of constructor based arguments so you will have to annotate your constructor with either JDK's @ConstructorProperties"

If the problem is param names, a solution : http://paranamer.codehaus.org

Why not use paranamer + Convention Over Configuration (with some checks) ?

Best regards, Ronan.

agentgt commented 11 years ago

Paranamer while a nice library is sort of a work around. Without annotations you have to do something special whether that is include a javadoc jar or use ASM. JSR 330 would require a separate dependency over the much cleaner and already in the JVM @ConstructorProperties . Paranamer also does not have an @ConstructorProperties (although I'm sure its trivial to add it).