I asked earlier if there were tools for reverse engineering for NHibernate, and some people mentioned a few. One of them seemed particularly helpfull, "Codus", but it has the problem that it makes poor hbm.xml files, because it does not map one-to-many, many-to-one nor many-to-many collections. Besides that, it generated classes inside a class only as an id (instead of an actual object); ie: class "State" has as a variable an object of type class "Country". But Codus generates a class "State" with a property "IdCountry", because that's what there is in the database.
I tryed to do the same in Hibernate (the java version) with a plugin for Eclipse that I think cames with Hibernate, and it DID generate the class "State" with a class "Country" inside... so, the question is... is there a reverse engineering tool for NHibernate that works as the plugin for Eclipse?
|