This content has been marked as final.
Show 1 reply
-
1. Re: @Column Annotation doesn't seem to work...
mikedougherty Mar 28, 2007 11:49 AM (in response to ericchile)I can't answer the "why", but I had the same problem. I worked around it by putting the @Column annotation in the Primary Key class.
public class Foo { @Id public Long getFooId() { } @Id public Long getBarId() { } public static class FooPK { @Column(name="FOO_ID") public Long getFooId() { } @Column(name="BAR_ID") public Long getBarId() { } } }
Seems to have given me the result I needed. But I'm not sure how this will affect future mappings, annotations, etc.