I downloaded the example package of hibernate from
http://caveatemptor.hibernate.org

And when I tried to compile I get these errors in BankAccount.java file :

The annotation @JoinColumn is disallowed for this location

The attribute access is undefined for the annotation type Entity

The code in the java file is:

@Entity(access = AccessType.FIELD)
@Table(name = "BANK_ACCOUNT")
@JoinColumn(name = "BANK_ACCOUNT_ID")
public class BankAccount extends BillingDetails {

    @Column(name = "BA_NUMBER", nullable = false, updatable = false)
        private String number;

    @Column(name = "BA_NAME", nullable = false, updatable = false)
        private String bankName;
...... snip-->
}

What is wrong ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959997#3959997

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959997
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to