You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2003/09/19 17:19:33 UTC
cvs commit: db-ojb/src/test/org/apache/ojb/broker ObjectRepository.java
brj 2003/09/19 08:19:33
Modified: src/test/org/apache/ojb/broker ObjectRepository.java
Log:
multilevel vertical inheritance
- new testclasses
Revision Changes Path
1.3 +27 -18 db-ojb/src/test/org/apache/ojb/broker/ObjectRepository.java
Index: ObjectRepository.java
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ObjectRepository.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ObjectRepository.java 17 Sep 2003 19:02:33 -0000 1.2
+++ ObjectRepository.java 19 Sep 2003 15:19:33 -0000 1.3
@@ -271,19 +271,8 @@
*/
public static class F extends E implements Serializable
{
- int id;
int someValue;
- public int getId()
- {
- return id;
- }
-
- public void setId(int id)
- {
- this.id = id;
- }
-
public int getSomeValue()
{
return someValue;
@@ -298,18 +287,38 @@
public static class G extends F implements Serializable
{
- int id;
int someSubValue;
- public int getId()
+ public int getSomeSubValue()
{
- return id;
+ return someSubValue;
}
- public void setId(int id)
+ public void setSomeSubValue(int someSubValue)
{
- this.id = id;
+ this.someSubValue = someSubValue;
}
+ }
+
+ public static class F1 extends E implements Serializable
+ {
+ int someValue;
+
+ public int getSomeValue()
+ {
+ return someValue;
+ }
+
+ public void setSomeValue(int someValue)
+ {
+ this.someValue = someValue;
+ }
+ }
+
+
+ public static class G1 extends F1 implements Serializable
+ {
+ int someSubValue;
public int getSomeSubValue()
{
@@ -320,6 +329,6 @@
{
this.someSubValue = someSubValue;
}
- }
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org