[hibernate-dev] Invoking hbm2java without using Ant
Max Rydahl Andersen
max.andersen at redhat.com
Wed May 14 03:19:46 EDT 2008
what is the stacktrace ?
-max
> Hi,
>
> Wondering if you can help me here.
>
> I have a hibernate.reveng.xml file which contains some tables. I want to
> generate mappings and POJOs for those tables that are in the reveng.xml file
> without using Ant.
>
> Here is how my code looks like:
>
> String fileName = "hibernate.reveng.xml";
> JDBCMetaDataConfiguration cfg = new JDBCMetaDataConfiguration();
> cfg.configure();
> OverrideRepository or = new OverrideRepository();
> or.addResource(fileName);
> cfg.setReverseEngineeringStrategy(or.getReverseEngineeringStrategy(new
> DefaultReverseEngineeringStrategy()));
>
> But I am getting java.lang.ExceptionInInitializerError at
> JDBCMetaDataConfiguration cfg = new JDBCMetaDataConfiguration();
>
> Any idea why I am getting an error there ?
>
> Thanks
>
>
>
>
>
>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
More information about the hibernate-dev
mailing list