<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pragmatic Forums | Posts in topic 'Problems with the @NotPersisted annotation'</title>
    <link>/forums/106/topics/8640.rss</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Problems with the @NotPersisted annotation posted by Dan Haywood @ Sun, 06 Mar 2011 18:28:19 +0000</title>
      <description>&lt;p&gt;Hi Barry,&lt;br /&gt;First off, apologies for my tardy response.&lt;/p&gt;


	&lt;p&gt;Second, I don&amp;#8217;t think you&amp;#8217;ve misunderstood anything, and this does sound like the &lt;span class="caps"&gt;XML&lt;/span&gt; object store is at fault.&lt;/p&gt;


	&lt;p&gt;I imagine you&amp;#8217;ve noticed that since I wrote the book we&amp;#8217;ve taken Naked Objects + my sister projects into the Apache incubator, called Apache Isis.  Could you therefore raise a &lt;span class="caps"&gt;JIRA&lt;/span&gt; ticket against the &lt;span class="caps"&gt;XML&lt;/span&gt; objectstore using the &lt;span class="caps"&gt;JIRA&lt;/span&gt; instance (&lt;a href="https://issues.apache.org/jira/browse/ISIS"&gt;https://issues.apache.org/jira/browse/ISIS&lt;/a&gt;), ideally with a small test example?&lt;/p&gt;


	&lt;p&gt;Hope you continue to enjoy working with Naked Objects/Isis, and do check out the new website (&lt;a href="http://incubator.apache.org/isis/"&gt;http://incubator.apache.org/isis/&lt;/a&gt;) and the isis-dev mailing list.&lt;/p&gt;


	&lt;p&gt;Cheers&lt;br /&gt;Dan&lt;/p&gt;</description>
      <pubDate>Sun, 06 Mar 2011 18:28:19 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:106:8640:23615</guid>
      <author>Dan Haywood</author>
      <link>http://forums.pragprog.com/forums/106/topics/8640</link>
    </item>
    <item>
      <title>Problems with the @NotPersisted annotation posted by barry woods @ Sun, 13 Feb 2011 06:04:22 +0000</title>
      <description>&lt;p&gt;Hi Dan,&lt;/p&gt;


	&lt;p&gt;I have recently purchased your book and am quite excited by the possibilities that the Naked Objects framework offers.&lt;/p&gt;


	&lt;p&gt;I am currently building a prototype app using the &lt;span class="caps"&gt;XML&lt;/span&gt; object store so I can see what is being persisted. This app is based around projects that will be represented as nodes in a graph that end users can walk in the client UI. (i.e. each project could have multiple parents and children which equate to related projects and sub-projects). I have setup a bi-directional relationship between the nodes using an interposed link object that contains additional attributes pertaining to the relationship.&lt;/p&gt;


	&lt;p&gt;These relations between nodes need to be filtered according to the user, the relationship type and other attributes of the relationship contained within the link object. Most users would be unaware of the link object and its attributes and it is therefore hidden from the UI.&lt;/p&gt;


	&lt;p&gt;My idea was to perform a query against the link objects to obtain the set of relations that apply for a particular scenario, and use that set to dynamically populate a collection contained within the current visible Project object and thus exposing the sub-projects in the UI.&lt;/p&gt;


	&lt;p&gt;I have annotated this collection with the @NotPersisted annotation. However despite this annotation the dynamic collection is being persisted in the &lt;span class="caps"&gt;XML&lt;/span&gt; object store.&lt;/p&gt;


	&lt;p&gt;I somewhat nonplussed by this and feel maybe I am missing some concept here. Any help or suggestions you can offer would be greatly appreciated.&lt;/p&gt;


	&lt;p&gt;Hope all this makes sense,&lt;/p&gt;


	&lt;p&gt;Barry&lt;/p&gt;</description>
      <pubDate>Sun, 13 Feb 2011 06:04:22 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:106:8640:23284</guid>
      <author>barry woods</author>
      <link>http://forums.pragprog.com/forums/106/topics/8640</link>
    </item>
  </channel>
</rss>
