E.g. the only mapping I can see "adjusting" is the following case:
@Entity
public static class Primitives {
@Id
public Integer id;
public byte[] binaryData;
public char[] characterData;
}
At the moment this would ultimately map to a LONG RAW and LONG column, respectively, against all Oracle Dialects. Any other "acceptable form" of "long/large" data already does the right thing in terms of mapping to a LOB, including both:
@Entity
public static class LobPrimitives {
@Id
public Integer id;
@Lob
public byte[] binaryData;
@Lob
public char[] characterData;
}
and
@Entity
public static class LobLocators {
@Id
public Integer id;
@Lob
public Blob binaryData;
@Lob
public Clob characterData;
}
|