My application class uses a library that uses two variables by default.
public class SuperClass implements Serializable {
private long id;
private long version;
}
I have to extend this class in order to get access to some functions of the framework.
If I extend this class to my class as follows:
public class MyClassChild extends SuperClass {
private long myprimarykey;
private String some column;
private long myversion;
}
According to the programming model, these two variables are also available. When performing an operation that requires an object of type SuperClass.
Is there any idea to extend this SuperClass that doesn't include these two variables (id, version)?
I do not know what to do?
Any suggestions pls?
thank
source
share