<?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 Re: Create custom Table in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68694#M22756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't pollute the Alfresco database with unrelated tables. Instead, create your own database instance and put your tables there. If you ignore this advice you could be sorry when you do your first upgrade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2018 03:27:00 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2018-06-13T03:27:00Z</dc:date>
    <item>
      <title>Create custom Table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68693#M22755</link>
      <description>Hi,I have developed Alfreco/Angular&amp;nbsp;app and i need to store user settings/preference in order to customize dashboardThere is no link with Alfresco data or alfresco dashboardIs-it possible to store this kind of data in new custom Table in Alfresco database ?Thank you</description>
      <pubDate>Tue, 12 Jun 2018 09:05:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68693#M22755</guid>
      <dc:creator>anakin59490</dc:creator>
      <dc:date>2018-06-12T09:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68694#M22756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't pollute the Alfresco database with unrelated tables. Instead, create your own database instance and put your tables there. If you ignore this advice you could be sorry when you do your first upgrade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 03:27:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68694#M22756</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-06-13T03:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68695#M22757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, familiarize yourself with the existing Alfresco services. There already is a PreferenceService in the Repository-tier which can be used to store user preferences. The REST v1 API also exposes this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:40:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68695#M22757</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-06-13T09:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68696#M22758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;so can I use Alfresco 5 Hibernate libs to create another database ? I make some test without success ?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/51675166/alfresco-5-2-hibernate" title="https://stackoverflow.com/questions/51675166/alfresco-5-2-hibernate" rel="nofollow noopener noreferrer"&gt;spring - Alfresco 5.2 - Hibernate - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do it ? I found Hibernate-3.2.6-alf-20131023 jar in C:\alfresco-community\tomcat\webapps\alfresco\WEB-INF\lib so I suppose it's possible, no ?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 10:01:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68696#M22758</guid>
      <dc:creator>anakin59490</dc:creator>
      <dc:date>2018-08-06T10:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68697#M22759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do NOT use Hibernate at all (even if ignoring Jeff's advice of not creating custom tables) - Hibernate has been removed in Alfresco 6, so you would set yourself up for failure in the future if you developed something using Hibernate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 14:45:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68697#M22759</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-08-06T14:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68698#M22760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Axel !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can you help me to finalize my config xml file, please...I have spend 2 days without to succeed !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have removed all Hibernate references :&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;beans xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:tx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/tx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/tx&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xsi:schemaLocation="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans-3.2.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans/spring-beans-3.2.xsd&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/tx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/tx&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/tx/spring-tx-3.2.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/tx/spring-tx-3.2.xsd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="driverClassName" value="org.postgresql.Driver" /&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="url" value="jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://localhost:5432/klinck" /&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="username" value="postgres" /&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="password" value="admin" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="myEmf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="persistenceUnitName" value="&lt;STRONG&gt;?????&lt;/STRONG&gt;" /&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="packagesToScan" value="com.klinck.mc.bean" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="entityManagerFactory" ref="myEmf" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt; &amp;lt;tx:annotation-driven /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error :&lt;/P&gt;&lt;P&gt;Caused by: java.lang.IllegalArgumentException: No PersistenceProvider specified in EntityManagerFactory configuration, and chosen PersistenceUnitInfo does not specify a provider class name either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And&amp;nbsp;ALL informations , founded on the web, about &lt;SPAN&gt;PersistenceProvider refer to Hibernate :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Quickly&lt;/STRONG&gt;,&amp;nbsp; several config founded on the web:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- &lt;EM&gt;exemple 1 :&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"org&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;hibernate&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;ejb&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px;"&gt;HibernatePersistence"&amp;nbsp; or &amp;lt;provider&amp;gt;org.hibernate.jpa.HibernatePersistenceProvider&amp;lt;/provider&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;- exemple 2 :&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property name="jpaProperties"&amp;gt;&lt;BR /&gt; &amp;lt;props&amp;gt;&lt;BR /&gt; &amp;lt;prop key="hibernate.hbm2ddl.auto"&amp;gt;none&amp;lt;/prop&amp;gt;&lt;BR /&gt; &amp;lt;prop key="hibernate.dialect"&amp;gt;org.hibernate.dialect.PostgreSQLDialect&amp;lt;/prop&amp;gt;&lt;BR /&gt; &amp;lt;prop key="hibernate.show_sql"&amp;gt;true&amp;lt;/prop&amp;gt;&lt;BR /&gt; &amp;lt;/props&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exemple 3 :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="hibernateVendor" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&amp;gt;&lt;BR /&gt; &amp;lt;property name="showSql" value="true" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(see on stackoverflow, &lt;A class="link-titled" href="https://spring.io/" title="https://spring.io/" rel="nofollow noopener noreferrer"&gt;Spring&lt;/A&gt;&amp;nbsp;...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is missing ? I know Alfresco Spring version is 3.2.17.RELEASE but I don't find how to do WITHOUT Hibernate !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU IN ADVANCE, it makes me crazy !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:46:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68698#M22760</guid>
      <dc:creator>anakin59490</dc:creator>
      <dc:date>2018-08-06T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom Table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68699#M22761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you really must, you should use MyBatis / iBatis for any custom SQL interaction, since this is what Alfresco uses and will continue to use since there has been no announcement / indication they are refacatoring anything in their DAO layer. (Again, think long and hard if this is the right thing to do.)&lt;/P&gt;&lt;P&gt;You can see an example of MyBatis / iBatis use in one of &lt;A href="https://github.com/Acosix/alfresco-audit/tree/master/src/main/config" rel="nofollow noopener noreferrer"&gt;my addons&lt;/A&gt; where I have used it to implement an incremental cleanup mechanism for data in the alf_prop_* tables as an alternative to the default,&amp;nbsp;all-or-nothing cleanup job provided by Alfresco (which was based on a script of mine). Start with the &lt;A href="https://github.com/Acosix/alfresco-audit/blob/master/src/main/config/context/dao-context.xml" rel="nofollow noopener noreferrer"&gt;dao-context.xml&lt;/A&gt; and then check the &lt;A href="https://github.com/Acosix/alfresco-audit/tree/master/src/main/config/ibatis" rel="nofollow noopener noreferrer"&gt;SQL mapping files&lt;/A&gt; for specific queries.&lt;/P&gt;&lt;P&gt;Note that this example works with the existing Alfresco database connection, but can easily be adapted to work with another database by providing a different data source and transaction manager. The basis for these can be taken from the original Alfresco config.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 08:49:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/create-custom-table/m-p/68699#M22761</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-08-08T08:49:57Z</dc:date>
    </item>
  </channel>
</rss>

