1) If you activate the "Domain code" exporter, then yes you'll get entity classes. That's independent of whether you use .hbm.xml or annotations, by the way. Be warned that the reveng process is hard to control, does not cover all cases, and is a bitch to adapt to new requirements. For my current project, reveng has eaten far more time than it could ever save; in 20/20 hindsight, I know I should have used hand-written Pojo classes, with EJB annotations, and have them checked for consistency with the RDBMS via unit tests. YMMV.
2) The Action and Manager terminology seems to be related to Spring/Struts. Hibernate Tools is not related to these, and I don't think it can generate them out of the box. It may be possible to make reveng generate these as well, but then maybe it cannot. Finding out whether it's possible is going to take person-months unless you're already a Hibernate Tools expert, so that's probably not your route anyway.
|