How do I get hibernate tools to generate wrapper objects instead of primitive data type for Id fields? Currently it generates the @Id field as follows:
@Id @SequenceGenerator(name="ADDRESS_ADDRESSID_GENERATOR", sequenceName="SEQ_ADDRESS") @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ADDRESS_ADDRESSID_GENERATOR") @Column(name="ADDRESS_ID", unique=true, nullable=false, precision=22) private long addressId;
but I want it like this:
@Id @SequenceGenerator(name="ADDRESS_ADDRESSID_GENERATOR", sequenceName="SEQ_ADDRESS") @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ADDRESS_ADDRESSID_GENERATOR") @Column(name="ADDRESS_ID", unique=true, nullable=false, precision=22) private Long addressId;
I appreciate any help.
|