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
>
>

Reply via email to