[jboss-user] [EJB 3.0] - Delete entities with LOB
heinrich
do-not-reply at jboss.com
Tue Mar 18 08:40:27 EDT 2008
Hi,
in what way is it possible to let the EntityManager remove an entity with a LOB property?
We are using EJB3, JBoss 4.0.5 and Postgres 8.2.
The underlying table is creates like this
| CREATE TABLE patient.incident_entry_binary(
| id SERIAL PRIMARY KEY,
| binary_content OID
| );
|
The database stores the binary data in files and writers only an objectid in the table.
When i try to remove the entity i always get an
anonymous wrote :
| 13:26:36,323 ERROR [STDERR] javax.persistence.EntityNotFoundException: deleted entity passed to persist: [lu.tudor.santec.gecamed.patient.ejb.entity.beans.IncidentEntryBinary#]
exception.
The part of the entity looks like this:
| @Column(name="binary_content")
| @Lob
| public byte[] getBinaryContent() {
| return binaryContent;
| }
|
any idea?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137387#4137387
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137387
More information about the jboss-user
mailing list