<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Developers : Accessing the Database from a Plugin : Comments</title>
    <link>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments</link>
    <description>Comments on : Accessing the Database from a Plugin</description>
    <language>en</language>
    <pubDate>Fri, 19 Dec 2008 19:05:59 GMT</pubDate>
    <generator>Jive SBS 3.0.8 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-12-19T19:05:59Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: Accessing the Database from a Plugin</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments-4499</link>
      <description>&lt;!-- [DocumentBodyStart:8b9d4ab6-31b4-4577-81fe-9d5be41df749] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;This tutorial is missing one point : the plugin.xml file must contain:&lt;/p&gt;&lt;p&gt;&amp;lt;!-- Database sequence and schema version information --&amp;gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;databaseKey&amp;gt;feedblog&amp;lt;/databaseKey&amp;gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;databaseVersion&amp;gt;1&amp;lt;/databaseVersion&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;where databaseKey is the schema name used in schema.xml, in order to tell clearspace to create the tables.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8b9d4ab6-31b4-4577-81fe-9d5be41df749] --&gt;</description>
      <pubDate>Fri, 19 Dec 2008 19:05:59 GMT</pubDate>
      <author>sebastien@veodia.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments-4499</guid>
      <dc:date>2008-12-19T19:05:59Z</dc:date>
      <clearspace:dateToText>11 months, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Accessing the Database from a Plugin</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments-4500</link>
      <description>&lt;!-- [DocumentBodyStart:16f87a05-7c67-4a13-b5e0-0e93d4e61f24] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi Sebastien,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for that. I remember that had me hung up for a while as well. I will add that to the doc. Thanks&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:16f87a05-7c67-4a13-b5e0-0e93d4e61f24] --&gt;</description>
      <pubDate>Fri, 19 Dec 2008 19:07:29 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments-4500</guid>
      <dc:date>2008-12-19T19:07:29Z</dc:date>
      <clearspace:dateToText>11 months, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Accessing the Database from a Plugin</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments-5124</link>
      <description>&lt;!-- [DocumentBodyStart:085cc16e-2cc3-4a7e-bab3-0a3962ff313a] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Can you describe this code of FeedBlogDAOImpl calss:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-java"&gt;&lt;span style="color: navy;"&gt;&lt;strong&gt;long&lt;/strong&gt;&lt;/span&gt; id = nextID(impl);&lt;br/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Where I can find this nextID method sources?&lt;/p&gt;&lt;p&gt;What is the solution for generating primary keys?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:085cc16e-2cc3-4a7e-bab3-0a3962ff313a] --&gt;</description>
      <pubDate>Tue, 17 Mar 2009 15:05:30 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments-5124</guid>
      <dc:date>2009-03-17T15:05:30Z</dc:date>
      <clearspace:dateToText>8 months, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Accessing the Database from a Plugin</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments-7297</link>
      <description>&lt;!-- [DocumentBodyStart:cccb4c7a-af56-4775-b5c7-3052a5e9e65e] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;I cant believe I am posting this, but I just spent an hour stepping through code to figure this one out...so I thought I would mention it just so it is some where.&amp;#160; When using Postgres, in your plugin.xml, you should not have any "spaces" in your "databaseKey".&amp;#160; My rule of thumb is always to avoid spaces, but as I was flying through the plugin.xml setup..I accidentally put a space instead of a dash.&amp;#160; This caused all sorts of nasty stuff to happen...specifically a random error that said...syntax error after the "," in your SQL statement...all my tables in schema.xml were created....but it was the insert into the jiveVersion table that was barfing.&lt;/p&gt;&lt;div class="jive-quote"&gt;&lt;strong&gt;Avoid spaces in the database key, and live a happy life...Hope this helps someone =)&lt;/strong&gt;&lt;/div&gt;&lt;p&gt;Updated:&lt;/p&gt;&lt;p&gt;In fact, this may not have had anything to do with the problem.&amp;#160; I tried a purge with a new configuration for my plugin, and got the same error.&amp;#160; What had worked, was a manual insertion of my plugin into jiveVersion, to bypass the problem.&amp;#160; Will look into this a bit more when I get a chance to loop back to it.&amp;#160; Something's a bit odd here.&amp;#160; Using 3.0.6 and Postgres (eval.exe) release.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cccb4c7a-af56-4775-b5c7-3052a5e9e65e] --&gt;</description>
      <pubDate>Sun, 16 Aug 2009 04:47:32 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-3281#comments-7297</guid>
      <dc:date>2009-08-16T04:47:32Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

