<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is it possible to use Integer instead of 'uuid' ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-integer-instead-of-uuid/m-p/117234#M82775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am newbie on activiti ,grails and hibernate, big challange heh &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have start to develop a project which is built on grails 2.1.0 and activiti plugin on it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The user table using uuid for user id but, i dont want to use uuid because of perfomance issue , The user id will be foreign key most table and it will occupy more place than integer in database. it is possible to change it with integer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can not use association types in process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a process which has createdUser and approvedUser properties and, these properties are a type of User class. When i designed this type of structure , it try to keep as seriazible type in act_ru_variable table, this is also performance issue. Maybe my approach is wrong.! Also i know that i can use property as String like in VocationRequest example but,i want to use benefit of hibernate. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone give advise to me about using association types in process ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2012 09:25:31 GMT</pubDate>
    <dc:creator>necipakca</dc:creator>
    <dc:date>2012-10-18T09:25:31Z</dc:date>
    <item>
      <title>Is it possible to use Integer instead of 'uuid' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-integer-instead-of-uuid/m-p/117234#M82775</link>
      <description>Hi all,I am newbie on activiti ,grails and hibernate, big challange heh &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; i have start to develop a project which is built on grails 2.1.0 and activiti plugin on it. Firstly ,The user table using uuid for user id but, i dont want to use uuid because of perfomance issue , The user id will be foreign</description>
      <pubDate>Thu, 18 Oct 2012 09:25:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-integer-instead-of-uuid/m-p/117234#M82775</guid>
      <dc:creator>necipakca</dc:creator>
      <dc:date>2012-10-18T09:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use Integer instead of 'uuid' ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-integer-instead-of-uuid/m-p/117235#M82776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The user table using uuid for user id but, i dont want to use uuid because of perfomance issue , The user id will be foreign key most table and it will occupy more place than integer in database. it is possible to change it with integer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti has two db id generators built in. It seems like the Grails plugin is using the one with UUID. The other db generator uses strings, not integers. In my opinion, for modern database this doesn't make any real performance difference. You would need to tweak a lot of other stuff first before that ever might be a performance issue (if it ever will be).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So to answer your question: yes it can, check the DBIdGenerator classes. But I wouldn't recommend it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I can not use association types in process.&lt;BR /&gt;I mean,&lt;BR /&gt;There is a process which has createdUser and approvedUser properties and, these properties are a type of User class. When i designed this type of structure , it try to keep as seriazible type in act_ru_variable table, this is also performance issue. Maybe my approach is wrong.! Also i know that i can use property as String like in VocationRequest example but,i want to use benefit of hibernate.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use JPA entities and only store a reference to them in the activiti tables. See &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#N1200A" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#N1200A&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case you are right: this will have a performance impact. But more importantly, there will only be one version of the data, which doesn't happen if you serialize and copy the bean in your process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 05:37:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-use-integer-instead-of-uuid/m-p/117235#M82776</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-19T05:37:42Z</dc:date>
    </item>
  </channel>
</rss>

