Hibernate Team |
|
Joined: Tue Aug 26, 2003 6:10 am Posts: 8615 Location: Neuchatel, Switzerland (Danish)
|
currently no - and it only worked in the "old days" because it would ignore some associations which can/could result in pretty bad code generated.
Today the model has to be sound/complete, meaning if a mapping has an assocation to another mapping both mappings have to be included and we automatically dump all classes.
Anyways, you can write your own Exporter or simply write a template that only exports a set of the pojos. Look at POJOExporter for how it is done programmatically
a thing that might work (as a sideeffect) is that you could put some logic in the top of pojo.vm which would either generate the right contents or let the file be empty. If the output is empty we dont generate a file for it.
_________________ Max
Don't forget to rate
|
|