I’ve read this question :
And I was wondering if I want Hibernate to crate the database table and name it and the columns, at the same time I want the primary key to be a hash value (as a String) that I generate at run time.
would something like the answer for the above question work?
@OneToOne(fetch = FetchType.LAZY) @MapsId @JoinColumn(name = "RequestID") private Reqeust request;
Hope you can provide some guidance or point me to a reliable resource?
PS: also looked at : Using a oracle sequence on non primary key