Entity Classes from Database

View: New views
2 Messages — Rating Filter:   Alert me  

Entity Classes from Database

by Miroslav Nachev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to improve New File wizard "Entity Classes from Database"
which is in category Persistence. Can you tell me from where to download
the source code and what are the package and classes names?

Is the same Wizard used for "Java Database Desktop Application" where
the generated entity classes implements PropertyChangeSupport? If this
is another Wizard, please point the relevant package and classes names?

Thank you in advance.


Regards,
Miro.

Re: Entity Classes from Database

by Andrei Badea :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Miroslav Nachev wrote:
> Hi,
>
> I would like to improve New File wizard "Entity Classes from Database"
> which is in category Persistence. Can you tell me from where to download
> the source code and what are the package and classes names?

First you need to download the sources and build the whole NetBeans:

http://www.netbeans.org/community/sources/cvs.html

Then you can start hacking the RelatedCMPWizard and sibling classes in
the module in j2ee/persistence directory.

> Is the same Wizard used for "Java Database Desktop Application" where
> the generated entity classes implements PropertyChangeSupport? If this
> is another Wizard, please point the relevant package and classes names?

It is not exactly the same wizard, but the code which generates the
classes is the same. Have a look at the the module in the form/j2ee
directory.

Andrei

P.S. Since you want to hack on NetBeans, nbdev would have been the best
mailing list for this. Not nbui and not nbj2ee.