Skip to main content



      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 06:46 Go to next message
Eclipse UserFriend
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?
Re: How to use enums in EOL queries on EMF models? [message #1817592 is a reply to message #1817526] Tue, 26 November 2019 05:58 Go to previous messageGo to next message
Eclipse UserFriend
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 06:48 Go to previous message
Eclipse UserFriend
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 Jul 08 15:04:50 EDT 2025

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

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

Back to the top