I use Hibernate and Middlegen for working with Oralce database. Middlegen generated java classes successfully. But I want to add some new methods and attributes to it. Can I specified that modification and apply it every time when I regenerate classes?
For example: it generates class A:
Code:
public class A {
private BigDecimal xmlFile;
public A() {};
// ...
}
and i want to generate class as
Code:
public class A {
private BigDecimal xmlFile;
// new property that is not mapped on the database.
int new_prop;
public A() {
// read data from file and specify new_prop.
new_prop = 2;
}
// ....
}