Hmm, nope, unfortunately not
Code:
public class GzHtml
{
@Id
@Column( name = "url_id" )
private String urlId;
@Column( name = "html" )
@NotNull
private byte[] html;
@OneToOne( fetch = FetchType.LAZY, cascade = CascadeType.ALL )
@PrimaryKeyJoinColumn
@org.hibernate.annotations.Fetch( org.hibernate.annotations.FetchMode.JOIN )
private GzText gzText;
Code:
Hibernate:
/* load f4t.model.GzText */ select
gztext0_.url_id as url1_2_0_,
gztext0_.title as title2_0_,
gztext0_.summary as summary2_0_,
gztext0_.text as text2_0_
from
public.gztext gztext0_
where
gztext0_.url_id=?
Hibernate:
/* load f4t.model.GzText */ select
gztext0_.url_id as url1_2_0_,
gztext0_.title as title2_0_,
gztext0_.summary as summary2_0_,
gztext0_.text as text2_0_
from
public.gztext gztext0_
where
...