[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-797) using @LOB annotation

Alex Beggs (JIRA) noreply at atlassian.com
Tue May 5 23:42:17 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33105#action_33105 ] 

Alex Beggs commented on ANN-797:
--------------------------------

I am using Derby and I was able to set the size to something other than the default 255 by specifying length in the @Column annotation.  (Note: if you are using Netbeans 6.5 to view Derby table, make sure you refresh even after reconnecting, seems to cache the table data, making it seem like things haven't changed when they have.)

@Basic(fetch = FetchType.LAZY)
@Column(length = Integer.MAX_VALUE)
@Lob
private ImageIcon pageImage;

> using @LOB annotation
> ---------------------
>
>                 Key: ANN-797
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-797
>             Project: Hibernate Annotations
>          Issue Type: Bug
>            Reporter: Patrick Walter
>
> When I use the @LOB annotation it always creates only VARCHAR(255) for stringData and Binary (255) for binaryData defined below.
> @Lob @Basic(fetch=FetchType.LAZY)
> private byte[] binaryData;
> @Lob @Basic(fetch=FetchType.LAZY)
> private String stringData;
> Any help in resolving this would be VERRY!!! appreciated.
> THANKS

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list