Hi Brice, Thanks for the reply! Sorry for asking questions but there is no substantial documentation for the plugin that I have noticed (or if there is, could someone point me to it please?) jdbcconfiguration I presume lets you reverse engineer by pointing to an existing schema and annotationconfiguration by using annotations. Is this correct?
I tried opening Eclipse, adding an anntotation (with the @entity tag) and running the goal again but I have a few problems still in that Eclipse doesn't recognise the annotation (I'm not sure how to use them; I donwloaded the hibernate annotations jar and put it in the compiler's annotation processing factory setting. AI know this is not a maven problem, but any pointers would be appreciated). So maybe I should go for the path of least resistence and use the hibernatedoclet plugin instead. Does anyone know how to use this (or again, could point me into some documentation). The search function on the codehaus site doesn't seem to work so I can search the mailing lists easily. Hibernatedoclet would be a quick win for me if someone would have a sample pom.xml that I could view. Thanks very much for your help! Roberto ----- Original Message ----- From: Brice Lambi To: [email protected] Sent: Monday, August 13, 2007 5:55 PM Subject: Re: [mojo-user] Hibernate3 plugin - How to generate hbm xml mapping files The hbm2hbmxml goal should generate those files for you. It depends on how you have things setup if you want to use annotationconfiguration or jdbcconfiguration. If you have a schema that can be reverse engineered then it can do it from that. I believe there is some default behavior that it will use if your classes do not use annotations, you just need to add the classes you want mappings for to hibernate.cfg.xml. Good luck! On 8/13/07, Roberto del Fuego <[EMAIL PROTECTED] > wrote: Hi, I'm trying to use the Hibernate3 plugin and could use some help if you wouldn't mind. How can I generate the .hbm.xml mapping files? Do I put XDoclet style annotations on my classes? Are the mapping files then generated and included in the .cfg.xml file? I have a hibernate.properties file and have run hibernate3:hbm2cfgxml: this generates me a hibernate.cfg.xml file but now I want to generate the .hbm.xml files. Any help (or possibly a zipfile sample) would be *really* apreciated!! thanks very much for your help, Roberto
