Rigth now, the only way to map annotated classes is to use the programmatic API
AnnotationConfiguration ac = new AnnotationConfiguration(); ac.addPackage("my.package"); ac.addAnnotatedClass(MyClass.class); ... Users ( and Max ;-) ) ask for declarative configuration. The best way seems to enhance the hibernate.cfg.xml DTD to allow <mapping annotatedPackage="my.package"/> <mapping annotatedClass="my.package.MyClass"/> ... and *not* to add hard dependency from core to annotations. I can add a weak dependency getting AnnotationConfiguration through its string name and catching the ClassNotFoundException if AnnotationConfiguration is requested. Any comment? Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel