i'm been trying to solve this some more and it seems that the 
@AttributeOverride annotation is ignored altogether..

I've tried to put it on various classes in the class hierarchy including both  
@MappedSuperclass and @Entity , both leave and non-leave classes. I tried 
overriding the name of the column, the nullability, the uniqueness etc. Even if 
i try to override some column "THISCOLUMNDOESNTEXIST" , i have no error or 
message whatsoever..

the class hierarchy is :

(@MappedSuperclass) BaseEntity -> (@Entity) Document -> (@Entity) 
InternDocument -> (@Entity) LeaveDocument

none of the following works :

@Entity
  | @AttributeOverride(name="code",[EMAIL PROTECTED](nullable=false))
  | public class LeaveDocument extends InternDocument {

@Entity
  | @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
  | @AttributeOverride(name="code",[EMAIL PROTECTED](name="anothercode"))
  | public abstract class InternDocument extends Document{

@Entity
  | @Inheritance(strategy=javax.persistence.InheritanceType.TABLE_PER_CLASS)
  | @AttributeOverride(name="THISCOLUMNDOESNEXIST",[EMAIL 
PROTECTED](nullable=false))
  | public abstract class Document extends BaseEntity {

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944829


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to