Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315631 - Can't map to existing table without an "e_version" column
Summary: Can't map to existing table without an "e_version" column
Status: CLOSED WORKSFORME
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 13:21 EDT by Ed Peters CLA
Modified: 2013-02-18 14:52 EST (History)
1 user (show)

See Also:


Attachments
SQL script to create table (124 bytes, application/octet-stream)
2010-06-03 13:21 EDT, Ed Peters CLA
no flags Details
XSD definition of entity (999 bytes, application/octet-stream)
2010-06-03 13:22 EDT, Ed Peters CLA
no flags Details
HBM generated by Teneo (1.15 KB, text/xml)
2010-06-03 13:22 EDT, Ed Peters CLA
no flags Details
stack trace (2.50 KB, text/plain)
2010-06-03 13:23 EDT, Ed Peters CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Peters CLA 2010-06-03 13:21:19 EDT
Build Identifier: 1.1.2.v201005192216

I have an existing table and am trying to create the appropriate XSD so I can access it through Teneo.  I keep getting an error during schema validation that says "Missing column: e_version in <mydb>.foo".  I tried disabling optimistic locking using the @HbEntity annotation, but Teneo is still generating that column in its HBM mapping.

Attached, you'll find:
(a) a SQL script that defines my table
(b) an XSD file that defines my entity
(c) the hbm.xml mapping generated by Teneo (snooped out using a debugger); and,
(d) the error stack trace

I've talked with Martin about this, and he's already fixed the issue.  This bug entry is for posterity.

Reproducible: Always
Comment 1 Ed Peters CLA 2010-06-03 13:21:47 EDT
Created attachment 170984 [details]
SQL script to create table
Comment 2 Ed Peters CLA 2010-06-03 13:22:04 EDT
Created attachment 170985 [details]
XSD definition of entity
Comment 3 Ed Peters CLA 2010-06-03 13:22:26 EDT
Created attachment 170986 [details]
HBM generated by Teneo
Comment 4 Ed Peters CLA 2010-06-03 13:23:10 EDT
Created attachment 170987 [details]
stack trace
Comment 5 Martin Taal CLA 2010-08-18 08:35:45 EDT
Hi Ed,
Can you indeed confirm that this is fixed in the latest builds?

gr. Martin