<?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 Activiti Compound Primary Keys in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-compound-primary-keys/m-p/2417#M465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Activiti documentation under &lt;A href="https://www.activiti.org/userguide/#_requirements" rel="nofollow noopener noreferrer"&gt;JPA Requirements&lt;/A&gt; there is a bullet point which reads:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;... compound primary keys are not supported (&lt;CODE&gt;@EmbeddedId&lt;/CODE&gt; and &lt;CODE&gt;@IdClass&lt;/CODE&gt;).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Could someone please elaborate on why compound primary keys are not supported, and what sort of errors could be expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2017 13:46:08 GMT</pubDate>
    <dc:creator>brewmaster</dc:creator>
    <dc:date>2017-01-04T13:46:08Z</dc:date>
    <item>
      <title>Activiti Compound Primary Keys</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-compound-primary-keys/m-p/2417#M465</link>
      <description>Hello,In the Activiti documentation under JPA Requirements there is a bullet point which reads:... compound primary keys are not supported (@EmbeddedId and @IdClass).Could someone please elaborate on why compound primary keys are not supported, and what sort of errors could be expected?Thanks!Sean</description>
      <pubDate>Wed, 04 Jan 2017 13:46:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-compound-primary-keys/m-p/2417#M465</guid>
      <dc:creator>brewmaster</dc:creator>
      <dc:date>2017-01-04T13:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Compound Primary Keys</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-compound-primary-keys/m-p/2418#M466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try to use compound primary key &lt;CODE style="color: #727174; background-color: #f6f6f6; border: 0px;"&gt;@EmbeddedId&lt;/CODE&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt; and &lt;/SPAN&gt;&lt;CODE style="color: #727174; background-color: #f6f6f6; border: 0px;"&gt;@IdClass&amp;nbsp;&lt;/CODE&gt;you will get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Caused by: org.hibernate.MappingException: Composite-id class must implement Serializable: org.activiti.ApplicantID&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using composite id and see this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this github repo&amp;nbsp;&lt;A class="link-titled" href="https://github.com/jbarrez/spring-boot-with-activiti-example" title="https://github.com/jbarrez/spring-boot-with-activiti-example" rel="nofollow noopener noreferrer"&gt;GitHub - jbarrez/spring-boot-with-activiti-example&lt;/A&gt;&amp;nbsp;&amp;nbsp;to run a unit test with a composite Ids with @IdClass.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is a design decision that needs to be made for JPA to work with Activiti process variables. Will need more inspection to source code to understand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, is this a blocker for you? Would be interesting to understand your scenario and whether we could find a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to hear back from you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thong Huynh&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 19:59:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-compound-primary-keys/m-p/2418#M466</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-01-20T19:59:21Z</dc:date>
    </item>
  </channel>
</rss>

