Hibernate Annotation problem
Column annotation are ignored, if you mix the targets where you place them.
I assigned the @Id annotation to the field and the other annotations to a method. If the @Id annotation is assigned to a field, further method annotations are ignored and vice versa.
Below you can see an example class explaining the problem. The @Column annotation of getNameMethod is ignored.
{% highlight java %}
package de.laliluna.annotation;
import java.io.Serializable;
@Entity
public class SimpleBean implements Serializable {
}
{% endhighlight %}