Very cool, veeery cool!
BTW: Regarding automatic generation of all the tables in a database i think
its important to let the user choose which tables/field to include in the
entities. A lot of databases use internal tables, and these are not very
intresting as entities. We could have a kind of drag drop GUI to include the
tables/fields of interest...
Wouldn't really the skeleton for updating a database be mostly the same for
all tables in a database?
If we create a database object factory, which return a set of dataobjects
implementing(just the class skeleton) a update, store and load method for
each entity (someone may need to use stored procedures instead of plain sql,
we dont know). The autogenerator would then just produce a set of different
dataobjects for each database supported. It would also be easy to swich
databases without recompiling the entities - just changing the factory
input.
So if i want to support a new database I just generate a new set of skelton
dataobjects and implement them with stored procedures, plain sql etc...
Well, i dont know if this is something...
/Jon
> Sounds similar to the EJBDoclet ;-) What you could do is make another
> doclet that generate the bean only, and include the proper EJBDoclet
> tags. So, first you'd run your doclet to create the bean, and then
> EJBDoclet would generate all the other files (i.e. some kind of chained
> operation).
>
> That would be seriously cool I think, since it would allow *zero-effort*
> translation of existing database tables into EntityBeans!!
>
> What do you think? Interested? :-)))
>
> regards,
> Rickard
>
> --
> Rickard �berg
>
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]