It would be great if I could do something like (it's just an example):
@Entity
public class MyEntity {
@Id
public String id;
@Column(wrapInto = "UUID_GENERATE_V3(@Id)")
public String uuid;
}
So JPA would magically wrap this into the field when translating into the underlying query. It is really useful for substrings, custom extensions... so I feel like it must exist a mechanism