I'm using hibernate tools to generate the entities, mapping to the tables. Each entity class that is generated is implementing the Serializable interface by default. How can we actually stop the tool from implementing Serializable interface. Below is an example Test class which was generated by the tool. By default it implemented the Serializable interface. My TestInterface actually extending Serializable interface, so I do not want it it Test Class.
public TestInterface extends Serializable {
}
@Entity
@Table(name = "TEST")
public class Test implements TestInterface, java.io.Serializable {
..
..
}
And also on the top of Entities, we just have name attribute added to the @Table annotation. I also need the tool to add the schema attribute as schema="SampleUser". I also need to add serialVersionUID to the code. Below is the code which I need the tool to generate.
@Entity
@Table(name = "TEST", schema = "SampleUser")
public class Test implements TestInterface{
private static final long serialVersionUID = 1L;
..
..
}
Thank you.