Bug 537179 - Need ability to set name for bindinng table
Summary: Need ability to set name for bindinng table
Status: NEW
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.db (show other bugs)
Version: 4.13   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-19 08:10 EDT by Maxim Martynov CLA
Modified: 2020-12-11 10:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Martynov CLA 2018-07-19 08:10:09 EDT
CDO has nice feature to generate table names for db. At the different instance of DB, cdo will generate different names for binding table. Different table names complicate the writing scripts when working directly with the database. To set the table names, CDO allows you to use the annotation
org.eclipse.emf.cdo.server.internal.db.DBAnnotation.TABLE_NAME. In this case, the binding table is still generated. 
It is necessary to be able to set the name of the binding table.
In our project we use DBAnnotation which start from "REF:" and with feature name.

For example Deployment class has many Artefacts:

  <eClassifiers xsi:type="ecore:EClass" name="Deployment">
    <eAnnotations source="http://www.eclipse.org/CDO/DBStore">
      <details key="tableName" value="DEPLOY_DEPLOYMENT"/>
      <details key="ref:artefacts" value="DEPLOY_DEPLOYMENT_ARTE_FLS1968"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="artefacts" upperBound="-1"
        eType="#//Artefact" containment="true"/>
  </eClassifiers>
Comment 1 Eclipse Genie CLA 2018-07-19 09:00:43 EDT
New Gerrit change created: https://git.eclipse.org/r/126323
Comment 2 Eclipse Genie CLA 2018-07-20 04:40:34 EDT
New Gerrit change created: https://git.eclipse.org/r/126365
Comment 3 Eclipse Genie CLA 2018-07-20 07:55:25 EDT
New Gerrit change created: https://git.eclipse.org/r/126379
Comment 4 Eike Stepper CLA 2019-11-08 02:06:54 EST
Moving all unresolved issues to version 4.8-
Comment 5 Eike Stepper CLA 2019-12-13 12:50:45 EST
Moving all unresolved issues to version 4.9
Comment 6 Eike Stepper CLA 2020-12-11 10:40:22 EST
Moving to 4.13.