Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dali-dev] a few more Dali questions (extending entity generation, etc)

Hi there,

I've got a fresh batch of Dali questions. :)

1) Is there a way when generating entities to tell Dali that I want my entity classes added into the class list in the persistence.xml? For performance reasons, I want to have all of my classes listed there; also for Java SE scenarios this is a necessary requirement.

2) I know previously Neil mentioned that in an upcoming release that Dali would allow you to have your connection information placed into the persistence.xml for you. Will there be some way to decide between a datasource or a driver-managed connection? That is, if I have a datasource set up, I would just want the jta-data-source written to the persistence.xml; otherwise I would need all of the individual provider properties written out detailing my connection info. Will these scenarios be handled?

3) I'm interested in extending Dali entity generation to handle things like generating additional constructors in the entities, or to generate some default namedQueries. I believe that I can hook into the Entity Generation framework somehow and perhaps provide my own subclassed Entity Generator. Is this currently possible? It would be nice to be able to specify my EntityGenerator in a plugin and then perhaps be able to choose that from a list of generator providers (or set it up programatically beforehand) and have the entity generation wizard call by EntityGenerator. Is something like this currently possible?

4) Along these same lines, if I want to update the model before generation to add things like setting up an OCC column or additional relationships, can I do so? That is, is this entity model exposed so I can update it so that it will generate what I want?


If anyone can help answer these, or let me know if they should be opened as feature requests, I'd appreciate it.
Thanks
Tom






Back to the top