Very interesting ! Could you tell me where do I find the "HibernateSingleton" class, from:
session._session = HibernateSingleton.getInstance( ) .getSessionFactory( ) .openSession( ); ? Thanks, Walter. --------------------------------------------------------------------------- Walter Itamar Mourão - Diretor de Tecnologia e Projetos - Arcadian S/A www.arcadian.com.br Herve Tchepannou <[EMAIL PROTECTED]> grava: >I'm submitting here the cartridge that I've created for my application >that is not dependent on any EJB. >This cartridge generates code based on the DAO design pattern. >For each entity, the following classes are created: >- a DAO interface that contains CRUD methods >- an implementation of the DAO interface based on Hibernate. > >This cartridge is based on the following assumptions: >- each com.foo.dao.xxxDAO methods throws com.foo.dao.DAOException (that >is not generated by androMDA) >- the Hibernate implementation use the ThreadLocal design pattern (see >ttp://www.hibernate.org/42.html) > >For this cartridge, I have added a couple of things for customizing the >codegeneration: > >- Tag value for setting the table name: @andromda.hibernate.table >- PK are assumed to be of type long, so the PK generator is the native. >So it supports auto-number, sequences or hi/log generators, depending on >the target database >- Add the method 'findAll()' int the DAO interface >- Add the following attributes tags: > * @andromda.hibernate.length > * @andromda.hibernate.unique > * @andromda.hibernate.not-null > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user