Mantis - Resin
Viewing Issue Advanced Details
2419 minor always 02-09-08 22:34 03-25-08 13:53
sam  
ferg  
normal  
closed 3.1.4  
fixed  
none    
none 3.1.6  
0002419: JPA duplicate column name does not produce error message
If a mistake is made and two JPA columns have the same name there are compile errors but no helpful error message.

@Entity
@Table(name="foo")
public class FooEntity
{
  @Id
  @Column(name = "id")
  private String id;

  @Basic
  @Column(name = "id")
  private String otherId;

[01:30:09.245] {resin-0} com.caucho.amber.AmberRuntimeException: com.caucho.java.JavaCompileException:/webapps/hogwarts/WEB-INF/work/pre-enhance/example/Foo__ResinExt.java:87: __amber_id is already defined in example.__ResinExt
[01:30:09.245] {resin-0} public java.lang.String __amber_id;
[01:30:09.245] {resin-0} ^

Notes
(0002893)
ferg   
03-25-08 13:53   
jpa/0g2g