|Generating Interfaces [message #609898]
||Tue, 01 April 2008 18:59
| Mike Yawn
Registered: July 2009
Probably the biggest thing I need to handle in my JPA implementation |
that is nonstandard (and therefore not handled by Dali) is to generate
interfaces, rather than classes, as the JPA-annotated types.
I'm not sure where JPA 2.0 comes down on this -- I had talked to Linda
DeMichiel about this around JavaOne time last year, and it sounded like
support of interfaces was something that would be considered. It
doesn't appear the spec is out for public review yet, so I have no idea
whether that made it in.
So, my questions are how can I implement this, and is it of any interest
to the Dali community to have it contributed back? I think the second
question is important in knowing how to answer the first.
It doesn't look like the API provides a way to substitute for the
included PackageGenerator and EntityGenerator classes. If interface
support is not going to be of interest to anyone but me, I will need
some way to replace the EntityGenerator with my own class.
If interface support is generally useful, then I can add an option for
that in the wizard, and a boolean in EntityGenerator.Config that would
then control code generation accordingly.
I haven't gotten much further than this in seeing how extensive the
changes would be to the code generation, but these seem like the first
questions that I need to figure out.
(By the way, if anyone is attending JavaOne and has any interest in
hearing what we're doing, check out session TS-7550, 'Introducing
eBay's Scalable Innovation Platform'). Only a part of that
talk is concerned with the JPA/database stuff, but it should be a
good overview to how we're using JPA here)
Powered by FUDForum
. Page generated in 0.02227 seconds