Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315631

Summary: Can't map to existing table without an "e_version" column
Product: [Modeling] EMF Reporter: Ed Peters <ed.peters>
Component: TeneoAssignee: Martin Taal <mtaal>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: d.nikita.e
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
SQL script to create table
none
XSD definition of entity
none
HBM generated by Teneo
none
stack trace none

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