<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Enums in Entity Classes</title><link>https://answers.axonivy.com/questions/1899/enums-in-entity-classes</link><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;What is the best practice in ivy to manage Enums in persistence classes ?&lt;/p&gt;
&lt;p&gt;this example looks fine to me
&lt;a href="http://www.codejava.net/frameworks/hibernate/hibernate-enum-type-mapping-example"&gt;http://www.codejava.net/frameworks/hibernate/hibernate-enum-type-mapping-example&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;but how do I implemented in in ivy ? 
how to add @Enumerated to a field ?&lt;/p&gt;
&lt;p&gt;Best Regards,
Yordan Yunchov&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1899/enums-in-entity-classes" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 18 Jul 2016 12:00:25 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1899/enums-in-entity-classes/1900</link><description>&lt;p&gt;Setting a property like this is not supported by EntityClassEditor. The editor is built to create very simple JPA models.&lt;/p&gt;
&lt;p&gt;If you hit a limitation of the editor like this @Enumerated property, you should break out of the editor and us a normal Java bean. Basically you can open the generated entity class of your existing EntityDataClass with the Java Editor and copy the generated source into the normal src directory. Then the EntityDataClass must be deleted...
... and of course now you are able to write whatever you want directly into the java source of the bean.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 18 Jul 2016 12:00:25 -0400</pubDate><guid>https://answers.axonivy.com/questions/1899/enums-in-entity-classes/1900</guid></item></channel></rss>