pauln wrote:
Hi,
I have been trying in vain to get hibernate tools to do something/anything useful for several days. It is incredibly frustrating because if it worked as intended ,it would be huge time saver.
sorry to hear that it doesn't work for you..lets see what we can do.
Quote:
Problem 1)
I have tried to create mapping files from pojo's and all I get is a new file with just a standard xml header and the name of the class but no mappings even thoguh the java file I've pointed to is a standard ajva object with propertys -getters and setters.
The wizard doesn't do more than that at the moment i'm afraid (i.e. besides creating the skeleton for a hbm.xml).
Quote:
Also does anybody know if you have to type in a jdbc type for every column ?
No, it just picks it up from the database if you don't specify anything.
Your reveng.xml can be completely empty and it would reverse engineer the whole database.
Quote:
-------------
org.hibernate.console.HibernateConsoleRuntimeException: Could not create or find org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with default no-arg constructor
You have set the reverse engineering strategy to point to an class that does not implement IReverseEngineeringStrategy - I assume you simply have done that by error. Just leave the field blank since it is purely optional.