Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Generate UUID(Wondering if Acceleo has any functions for generating UUIDs)
Generate UUID [message #1375247] Fri, 23 May 2014 00:41 Go to next message
Phillip Drew is currently offline Phillip DrewFriend
Messages: 77
Registered: October 2012
Member
I'm generating a dataset to go into a MySQL database.

The tables I'm adding to use UUIDs (generated with the MySQL UUID function) for foreign key relationships.

I can't seem to find any existing functions within Acceleo to generate some kind of UUID (or more likely an expected-to-be-universally-unique ID). In JET2 I would probably use something like <f:uuid>.

Does Acceleo have an equivalent to JET2s <f:uuid> tag?
Re: Generate UUID [message #1386424 is a reply to message #1375247] Tue, 17 June 2014 13:12 Go to previous message
Daniel Tahin is currently offline Daniel TahinFriend
Messages: 27
Registered: July 2013
Junior Member
Hello,

i'm not sure if this helps you. I guess Acceleo can't create UUIDs. But you can use the Ecore function "org.eclipse.emf.ecore.util.EcoreUtil". This is a Java function, that you can call in Acceleo (http://www.obeonetwork.com/page/the-acceleo-queries).

KR,
Daniel
Previous Topic:[Acceleo] unresolved proxy
Next Topic:[MWE] UML 2.4.0 to 2.5.0 mapping not supported?
Goto Forum:
  


Current Time: Sat Apr 27 03:47:57 GMT 2024

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

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

Back to the top