Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] 3 way join, how to do?
[Teneo] 3 way join, how to do? [message #615616] Thu, 06 March 2008 12:26
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

I am adapting a security service to use Teneo as the persistance layer.
The original system had a Role table, a Group table, a Permission table
and a User table. There was a table to join the Group, User and Role
information together. e.g. USER_GROUP_ROLE primary key (USER_ID,
GROUP_ID, ROLE_ID).

I am using the teneo.jpa annotations but from the examples cannot work
out how I woudl represent this, or whether I need to create an element
that actually models this.

A couple of small things I noticed too.

eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
is used int he examples, this no longer exist is and I cannot find it. I
wanted to see the full set of XMLType values.

A more general thing, I worked on a project (dentaku at codehaus.org)
where we use stereotypes and tagged values in the UML to specify column
types and lengths etc. Then generated the Hibernate file from that. With
ECore there does not seem to be a way to do this so you end up with a
messy process, UML model then hand edit the ECore created from it to add
teneo.jap annotations. Any way of improving this? A second difficulty is
that with large XSDs produced as part of a standard it would be nice
if you could have the teneo.jpa annotations in a separate file so that
when a new version of that standard is released it is easier to manage
the changes, the only way to automate this I can see now is to write a
mega XSLT script to merge two files to add the teneo annotations to the
standard XSD.

Thx.

David
Previous Topic:[Announce] UML2 Tools at EclipseCon 2008
Next Topic:[Teneo] 3 way join, how to do?
Goto Forum:
  


Current Time: Tue Apr 16 12:13:14 GMT 2024

Powered by FUDForum. Page generated in 2.19876 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top