Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Hawk » How to use enums in EOL queries on EMF models?
How to use enums in EOL queries on EMF models? [message #1817526] Mon, 25 November 2019 11:46 Go to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 242
Registered: October 2009
Location: Mexico
Senior Member

I am writing a query that relies on Enum values, but I am getting an error.

Looking at the code, the AbstractHawkModel.getEnumerationValue throws an UsupportedOperationException.

Is this intended? Is it impossible to store the ennumeration information in the DB?


Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Re: How to use enums in EOL queries on EMF models? [message #1817592 is a reply to message #1817526] Tue, 26 November 2019 10:58 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 597
Registered: January 2010
Location: Birmingham, UK
Senior Member

Hmm, I think right now we store it as a string. Let me try creating some tests for it :-).
Re: How to use enums in EOL queries on EMF models? [message #1817595 is a reply to message #1817592] Tue, 26 November 2019 11:48 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 597
Registered: January 2010
Location: Birmingham, UK
Senior Member

OK, I have had a quick look at it. I have implemented a test and a workaround for the common case of testing x.enumAttribute = Enum#literal. More details are here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=553484

CI should be picking up the new commit and building a new interim release soon. Let me know how it works for you!
Previous Topic:Can not select Neo4J Backend
Next Topic:Get time-aware commit messages
Goto Forum:
  


Current Time: Tue May 28 01:55:17 GMT 2024

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

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

Back to the top