Hi, there,
Thanks very much for your reply, that works great!
My next problem is on how to persist custom types that are part of legacy components.
For example, if I had the above code sample with the following modification to "PaymentInstrument":
Example: framework.jar
Code:
public class PaymentInstrument {
private String instrumentNumber;
private String routingNumber;
private PaymentChannel channel;
// getters and setters omitted
}
where PaymentChannel is:
Code:
public class PaymentChannel {
private int type;
private String description;
// remaining code omitted
}
Normally, I would demark the PaymentChannel with @Type and use a custom implementation of org.hibernate.usertype.UserType, but in this case, I have no access to the legacy class. Any suggestions on how to persist this custom type in the database?
Thanks for your time,
Tan