Attribute not generated for Blob type fields
--------------------------------------------
Key: METAGEN-38
URL:
http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-38
Project: Hibernate Metamodel Generator
Issue Type: Bug
Affects Versions: 1.0.0-CR-1
Environment: Hibernate 3.5.3-Final, Oracle DB
Reporter: Stu White
Assignee: Hardy Ferentschik
Attachments: test-case.zip
Hi,
I've got a class with a field of type java.sql.Blob, and it appears that the Hibernate
Metamodel generator is ignoring this field when generating the metamodel. Other fields are
generated correctly.
The class in question looks like:
{code:title=BlobEntity.java|borderStyle=solid}
@Entity
@Table(name = "BlobEntity", schema = "Repository")
public class BlobEntity
{
@Id
@Column(name = "blob_id")
private String mId;
@Lob
@Column(name = "blob_value", insertable = false, updatable = false)
private Blob mBlob;
/// Etc
{code}
The generated metamodel looks like:
{code:title=BlobEntity_.java|borderStyle=solid}
@StaticMetamodel(BlobEntity.class)
public abstract class BlobEntity_ {
public static volatile SingularAttribute<BlobEntity, String> mId;
}
{code}
Admittedly, generating an attribute for a Blob field isn't particularly useful because
we don't want to search against this field. However, Hibernate seems to generates a
warning about this missing field ("Unable to locate static metamodel field ...
") at startup, and spec
(
http://docs.jboss.org/hibernate/jpamodelgen/1.0/reference/en-US/html_single/) seems to
suggest that a field should be generated.
I've attached a test case to reproduce, but it's pretty trivial. If you need any
further information or if there's anything I can do then please let me know.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira