To extend a class which is already extends by ebean model class
up vote
-2
down vote
favorite
I am developing a java playframework project.I am using Book class which is a sub class.It is extended from Item abstract class.I want to use com.avaje.ebean library and extend the Book class to add data to the database.So it means I have to extend two classes.
Is there alternative way of doing this?
Can you give me any solution.
java playframework ebean
add a comment |
up vote
-2
down vote
favorite
I am developing a java playframework project.I am using Book class which is a sub class.It is extended from Item abstract class.I want to use com.avaje.ebean library and extend the Book class to add data to the database.So it means I have to extend two classes.
Is there alternative way of doing this?
Can you give me any solution.
java playframework ebean
1
Possible duplicate of Extending from two classes
– MWB
Nov 19 at 17:53
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I am developing a java playframework project.I am using Book class which is a sub class.It is extended from Item abstract class.I want to use com.avaje.ebean library and extend the Book class to add data to the database.So it means I have to extend two classes.
Is there alternative way of doing this?
Can you give me any solution.
java playframework ebean
I am developing a java playframework project.I am using Book class which is a sub class.It is extended from Item abstract class.I want to use com.avaje.ebean library and extend the Book class to add data to the database.So it means I have to extend two classes.
Is there alternative way of doing this?
Can you give me any solution.
java playframework ebean
java playframework ebean
asked Nov 19 at 17:52
kavinda nehansana
1
1
1
Possible duplicate of Extending from two classes
– MWB
Nov 19 at 17:53
add a comment |
1
Possible duplicate of Extending from two classes
– MWB
Nov 19 at 17:53
1
1
Possible duplicate of Extending from two classes
– MWB
Nov 19 at 17:53
Possible duplicate of Extending from two classes
– MWB
Nov 19 at 17:53
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can do it by Multi-level inheritance:
class a {}
class b extends a{}
class c extends b{}
or else you have to go for interface concept, there you can implement n no. of classes
So if I extend my abstract class using ebean model class. will I be able to add sub class data to the database.
– kavinda nehansana
Nov 19 at 18:17
I hope it should work, try once
– user9150771
Nov 19 at 19:10
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can do it by Multi-level inheritance:
class a {}
class b extends a{}
class c extends b{}
or else you have to go for interface concept, there you can implement n no. of classes
So if I extend my abstract class using ebean model class. will I be able to add sub class data to the database.
– kavinda nehansana
Nov 19 at 18:17
I hope it should work, try once
– user9150771
Nov 19 at 19:10
add a comment |
up vote
0
down vote
You can do it by Multi-level inheritance:
class a {}
class b extends a{}
class c extends b{}
or else you have to go for interface concept, there you can implement n no. of classes
So if I extend my abstract class using ebean model class. will I be able to add sub class data to the database.
– kavinda nehansana
Nov 19 at 18:17
I hope it should work, try once
– user9150771
Nov 19 at 19:10
add a comment |
up vote
0
down vote
up vote
0
down vote
You can do it by Multi-level inheritance:
class a {}
class b extends a{}
class c extends b{}
or else you have to go for interface concept, there you can implement n no. of classes
You can do it by Multi-level inheritance:
class a {}
class b extends a{}
class c extends b{}
or else you have to go for interface concept, there you can implement n no. of classes
answered Nov 19 at 17:59
user9150771
217
217
So if I extend my abstract class using ebean model class. will I be able to add sub class data to the database.
– kavinda nehansana
Nov 19 at 18:17
I hope it should work, try once
– user9150771
Nov 19 at 19:10
add a comment |
So if I extend my abstract class using ebean model class. will I be able to add sub class data to the database.
– kavinda nehansana
Nov 19 at 18:17
I hope it should work, try once
– user9150771
Nov 19 at 19:10
So if I extend my abstract class using ebean model class. will I be able to add sub class data to the database.
– kavinda nehansana
Nov 19 at 18:17
So if I extend my abstract class using ebean model class. will I be able to add sub class data to the database.
– kavinda nehansana
Nov 19 at 18:17
I hope it should work, try once
– user9150771
Nov 19 at 19:10
I hope it should work, try once
– user9150771
Nov 19 at 19:10
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53380161%2fto-extend-a-class-which-is-already-extends-by-ebean-model-class%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Possible duplicate of Extending from two classes
– MWB
Nov 19 at 17:53