<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Ivy data class persistence: Make the java class’s attribute transient?</title><link>https://answers.axonivy.com/questions/2238/ivy-data-class-persistence-make-the-java-class-s-attribute-transient</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;An employee instance will be persisted (Persistent column is yes) in ivy process. Employee java class has a list of profiles but I want to persist the profiles' id instead of profiles and load profiles when call getProfiles() if profiles attribute is null.&lt;/p&gt;
&lt;p&gt;Do you have any solutions/suggestions?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Long Do&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2238/ivy-data-class-persistence-make-the-java-class-s-attribute-transient" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 05 Dec 2016 16:26:43 -0500</lastBuildDate><item><title>Answer by Flavio Sadeghi</title><link>https://answers.axonivy.com/questions/2238/ivy-data-class-persistence-make-the-java-class-s-attribute-transient/2241</link><description>&lt;p&gt;If I understand the question correct, there exists a Table Employee and a Table Profiles. A Employee could have multiple Profiles and a Profile could be added to multiple Employees. So the relationship between Employee and Profile is Many-to-Many.&lt;/p&gt;
&lt;p&gt;Because of the limited configuration possibilities in the persistence dialog I would highly recommend to write plain Java Classes and annotate them with the corresponding JPA annotations. If you are not familiar with JPA I would highly recommend to read a book or some reliable online resources. JPA/Hibernate is a established library and widely used. But it has some pitfalls and if you don't know them they will come back and bite you. You have been warned. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flavio Sadeghi</dc:creator><pubDate>Mon, 05 Dec 2016 16:26:43 -0500</pubDate><guid>https://answers.axonivy.com/questions/2238/ivy-data-class-persistence-make-the-java-class-s-attribute-transient/2241</guid></item></channel></rss>