Obter Objeto - get()
17/05/2012 20:26
TesteObj teste = TesteObj.get(codigo)
Recurso não suportado. Stacktrace follows:
Message: Recurso não suportado
Line | Method
->> 347 | getBytes in oracle.jdbc.driver.ClobAccessor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 708 | getBytes in oracle.jdbc.driver.OracleResultSetImpl
| 398 | getBytes in oracle.jdbc.driver.OracleResultSet
| 291 | getBytes in org.apache.commons.dbcp.DelegatingResultSet
| 87 | doCall . in br.gov.rj.Controller$_closure2
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . in ''
^ 662 | run in java.lang.Thread
tratando java.sql.SQLException: Recurso não suportado (class java.sql.SQLException)
class TesteObj implements Serializable {
String a
Integer b
Integer c
Date d
String e
Integer f
byte[] g
StatusConcurso h
Integer i
static monConstricoes = [
a:[maxSize:50,nullable:false,blank:false],
b:[nullable:false,blank:false],
c:[nullable:true,blank:true],
d:[nullable:true,blank:true],
e:[maxSize:20,nullable:true,blank:true],
f:[nullable:true,blank:true],
g:[nullable:true,blank:true],
h:[nullable:false,blank:false],
i:[nullable:false,blank:false]
]
static constraints = {
a (monConstricoes.a)
b (monConstricoes.b)
c (monConstricoes.c)
d (monConstricoes.d)
e (monConstricoes.e)
f (monConstricoes.f)
g (monConstricoes.g)
h (monConstricoes.h)
i (monConstricoes.i)
}
static mapping = {
table name:'TESTE'
version false
id column:'CO_TESTE', generator:'increment'
a column:'A'
b column:'B'
c column:'C'
d column:'D'
e column:'E'
f column:'F'
g column:'G'
h column:'H'
i column:'I'
}
}
getBytes in oracle.jdbc.driver.ClobAccessor
Para se registrar, clique aqui.