Hi Herve, I do not find a build.xml file with your Hibernate generation. Can you tell how this needs to be installed ?
Jos ________________________________________________ Jos Warmer |---------+-----------------------------------------> | | Herve Tchepannou | | | <[EMAIL PROTECTED]> | | | Sent by: | | | [EMAIL PROTECTED]| | | ceforge.net | | | | | | | | | 11/28/2003 01:54 AM | | | | |---------+-----------------------------------------> >-------------------------------------------------------------------------------------------------| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: [Andromda-user] AndroMDA cartridge for DAO + Hibernate 2.x | >-------------------------------------------------------------------------------------------------| 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 ~attachment (DAOException.java) verwijderd door J.B. Warmer op 12/2/2003 4:30:24 PM ~attachment (ThreadLocalSession.java) verwijderd door J.B. Warmer op 12/2/2003 4:30:24 PM ~attachment (andromda-dao.zip) verwijderd door J.B. Warmer op 12/2/2003 4:30:24 PM ´Externe E-Mail wordt door DNB niet gebruikt voor het aangaan van verplichtingen` ´Any e-mail messages from The Nederlandsche Bank are given in good faith but shall not be binding nor shall they be construed as constituting any obligation on the part of the Bank.` ------------------------------------------------------- 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