<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dung Nguyen</title>
    <description>The latest articles on DEV Community by Dung Nguyen (@dungnd).</description>
    <link>https://dev.to/dungnd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F589514%2Fba98e72c-5f52-4c6d-87c9-bafe45906de6.jpeg</url>
      <title>DEV Community: Dung Nguyen</title>
      <link>https://dev.to/dungnd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dungnd"/>
    <language>en</language>
    <item>
      <title>How to register a custom Hibernate ARRAY Type that handles both real[] and text[] array column types</title>
      <dc:creator>Dung Nguyen</dc:creator>
      <pubDate>Wed, 03 Mar 2021 07:09:50 +0000</pubDate>
      <link>https://dev.to/dungnd/how-to-register-a-custom-hibernate-array-type-that-handles-both-real-and-text-array-column-types-4ho9</link>
      <guid>https://dev.to/dungnd/how-to-register-a-custom-hibernate-array-type-that-handles-both-real-and-text-array-column-types-4ho9</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/60188429/how-to-register-a-custom-hibernate-array-type-that-handles-both-real-and-text" rel="noopener noreferrer"&gt;
               How to register a custom Hibernate ARRAY Type that handles both real[] and text[] array column types
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Feb 12 '20&lt;/span&gt;
            &lt;span&gt;Comments: 1&lt;/span&gt;
            &lt;span&gt;Answers: 1&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/60188429/how-to-register-a-custom-hibernate-array-type-that-handles-both-real-and-text" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          1
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I am using the &lt;a href="https://github.com/vladmihalcea/hibernate-types" rel="nofollow noreferrer"&gt;Hibernate Types&lt;/a&gt; library for custom Hibernate types.&lt;/p&gt;
&lt;p&gt;I have two &lt;code&gt;CustomArrayType&lt;/code&gt; that handle the &lt;code&gt;real[]&lt;/code&gt; and &lt;code&gt;text[]&lt;/code&gt; array types. &lt;/p&gt;

&lt;p&gt;I am able to register one &lt;code&gt;CustomStringArrayType&lt;/code&gt; in the Hibernate Dialect (e.g. &lt;code&gt;PostgreSQL94Dialect&lt;/code&gt;) but how can register two types?&lt;/p&gt;

&lt;p&gt;Below is my custom dialect without which…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/60188429/how-to-register-a-custom-hibernate-array-type-that-handles-both-real-and-text" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
