Creating a framework using EJB 3.0? [message #433532] |
Fri, 17 February 2006 17:23  |
Eclipse User |
|
|
|
I'm working on a framework and I'd like to persist the domain model
using EJB 3.0, but this doesn't seem possible. Since the project
contains a pointer to a specific database, anyone that were to use and
extend the framework would be forced to use that database
specification. Am I missing something? Also, does EJB 3.0 handle
inheritance? Can I create a base class, specify attribute persistance,
extend it and specify persistence for the attrubutes of the specialized
class?
Bryan
|
|
|
Re: Creating a framework using EJB 3.0? [message #433535 is a reply to message #433532] |
Fri, 17 February 2006 17:59  |
Eclipse User |
|
|
|
On 2006-02-17 16:23:43 -0600, Bryan Hunt <bhunt.online@mac.com> said:
> I'm working on a framework and I'd like to persist the domain model
> using EJB 3.0, but this doesn't seem possible. Since the project
> contains a pointer to a specific database, anyone that were to use and
> extend the framework would be forced to use that database
> specification. Am I missing something? Also, does EJB 3.0 handle
> inheritance? Can I create a base class, specify attribute persistance,
> extend it and specify persistence for the attrubutes of the specialized
> class?
>
> Bryan
I think I've found the answers to my questions here:
http://www.javaworld.com/javaworld/jw-08-2005/jw-0815-ejb3.h tml
It appears that you can override the database connection using an XML
deployment descriptor. Part 2 of that article disucsses how to deal
with inheritance. This could be verry cool.
Bryan
|
|
|
Re: Creating a framework using EJB 3.0? [message #573146 is a reply to message #433532] |
Fri, 17 February 2006 17:59  |
Eclipse User |
|
|
|
On 2006-02-17 16:23:43 -0600, Bryan Hunt <bhunt.online@mac.com> said:
> I'm working on a framework and I'd like to persist the domain model
> using EJB 3.0, but this doesn't seem possible. Since the project
> contains a pointer to a specific database, anyone that were to use and
> extend the framework would be forced to use that database
> specification. Am I missing something? Also, does EJB 3.0 handle
> inheritance? Can I create a base class, specify attribute persistance,
> extend it and specify persistence for the attrubutes of the specialized
> class?
>
> Bryan
I think I've found the answers to my questions here:
http://www.javaworld.com/javaworld/jw-08-2005/jw-0815-ejb3.h tml
It appears that you can override the database connection using an XML
deployment descriptor. Part 2 of that article disucsses how to deal
with inheritance. This could be verry cool.
Bryan
|
|
|
Powered by
FUDForum. Page generated in 0.04623 seconds