-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to use Annotation for Long Raw of Oracle?
PostPosted: Tue Sep 26, 2006 6:26 pm 
Newbie

Joined: Mon Sep 25, 2006 7:45 pm
Posts: 1
Location: Brazil
Hibernate version: Hibernate Annotations 3.2.0.CR1

Mapping documents:
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "ALBUM")
public class Album {
private byte[] photo;


@Column(name = "PHOTO")
public byte[] getPhoto() {
return photo;
}

public void setPhoto(byte[] photo) {
this.photo = photo;
}
}

Full stack trace of any exception that occurs:
...
org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2148)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
at org.hibernate.loader.Loader.list(Loader.java:2024)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1562)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
...

Name and version of the database you are using: Oracle 10g

Debug level Hibernate log excerpt:
[WARN ] org.hibernate.util.JDBCExceptionReporter 26/09/2006 19:15:09 (JDBCExceptionReporter.java:logExceptions:71) - SQL Error: 17027, SQLState: null

[ERROR] org.hibernate.util.JDBCExceptionReporter 26/09/2006 19:15:09 (JDBCExceptionReporter.java:logExceptions:72) - Stream already was closed


I thank the attention

_________________
"Alea jacta est"


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.