Hi Peter,
I have successfully extended from a base class in several applications. Other
problems crop up so I don't have things too easy, but not this one.
You will find the solution here:
http://docs.jboss.org/ejb3/app-server/tutorial/singleinheritance/single.html
Also, the extended class
Please read ejb 3 spec. In PFD (chapter 2.1.9.2) it is explicitly written that
any annotations on non-entity superclass are ignored.
You can use @MappedSuperclass annotation to solve the problem.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3921888#3921888
Here is the Base Class
| public class BaseDeptDTOImpl implements Serializable {
|
| private static final Log log = LogFactory.getLog(BaseDeptDTO.class);
|
|
|/** Primary key. */
|private int deptId;
|
|/**
| * auto_increment
| *
| * Get
I don't know if it is a bug, but I was also unable to inherit annotations. In
my case I tried to inherit the @Version and @Id annotations.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3921718#3921718
Reply to the post :
Could you be a bit more specific what you are trying to override and what
exceptions you are getting. I have implemented inheritance from POJO's, but I
also had problems inheriting annotations. Basic services worked fine.
View the original post :