| Summary: | [Hibernate] resource.hbm.xml: the "blob" column name for the "cdo_lob" table causes MySQL error | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Slawomir Duszynski <Slawomir.Duszynski> |
| Component: | cdo.core | Assignee: | Martin Taal <mtaal> |
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> |
| Severity: | normal | ||
| Priority: | P3 | CC: | ales_d, mtaal |
| Version: | 4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Slawomir Duszynski
Fix committed to svn, but need to check how to backport to 4.1. Hello,
run into same problem with Oracle. I got:
INFO o.h.tool.hbm2ddl.DatabaseMetadata - table not found: cdo_lob
DEBUG o.h.i.f.DefaultIdentifierGeneratorFactory - Setting dialect [org.hibernate.dialect.Oracle10gDialect]
DEBUG o.h.i.f.DefaultIdentifierGeneratorFactory - Setting dialect [org.hibernate.dialect.Oracle10gDialect]
DEBUG o.h.i.f.DefaultIdentifierGeneratorFactory - Setting dialect [org.hibernate.dialect.Oracle10gDialect]
DEBUG o.h.tool.hbm2ddl.SchemaUpdate - create table "ANNOTATION_CONTENTS" ("ANNOTATION_E_ID" number(19,0) not null, "CONTENTS_TYPE" varchar2(255 char), "CONTENTS_ID" number(19,0), "ANNOTATION_CONTENTS_IDX" number(10,0) not null, primary key ("ANNOTATION_E_ID", "ANNOTATION_CONTENTS_IDX"))
DEBUG o.h.tool.hbm2ddl.SchemaUpdate - create table "ANNOTATION_REFERENCES" ("ANNOTATION_E_ID" number(19,0) not null, "REFERENCES_TYPE" varchar2(255 char), "REFERENCES_ID" number(19,0), "ANNOTATION_REFERENCES_IDX" number(10,0) not null, primary key ("ANNOTATION_E_ID", "ANNOTATION_REFERENCES_IDX"))
DEBUG o.h.tool.hbm2ddl.SchemaUpdate - create table "MODELELEMENT_details" ("ANNOTATION_DETAILS_E_ID" number(19,0), elt varchar2(255 char), "ANNOTATION_DETAILS_IDX" number(10,0) not null, primary key ("ANNOTATION_DETAILS_E_ID", "ANNOTATION_DETAILS_IDX"))
DEBUG o.h.tool.hbm2ddl.SchemaUpdate - create table "MODELELEMENT" (idcol number(19,0) not null, DTYPE varchar2(255 char) not null, resource_id varchar2(255 char), container_id varchar2(255 char), version number(10,0), "SOURCE" varchar2(255 char), "ANNOTATION_MODELELEMENT_E_ID" number(19,0), "MODELELEMENT_ANNOTATIONS_IDX" number(10,0), primary key (idcol))
DEBUG o.h.tool.hbm2ddl.SchemaUpdate - create table cdo_lob (id varchar2(255 char) not null, clob clob, blob blob, size number(10,0), primary key (id))
ERROR o.h.tool.hbm2ddl.SchemaUpdate - Unsuccessful: create table cdo_lob (id varchar2(255 char) not null, clob clob, blob blob, size number(10,0), primary key (id))
ERROR o.h.tool.hbm2ddl.SchemaUpdate - ORA-00904: : invalid identifier
Not sure if your fix solve the problem in generic way or only MySQL.
Ales
Pushed a solution to the git repository, will be in the next build. Hello Martin, just FYI: in Oracle the problem is caused by the "size" column, not the "blob" column... Ales Thanks for letting me know, I have changed the name of the size column, this has been pushed to the git repository for the 4.1 build. Closing. Mass update. Don't worry if this bug is already closed! |