title: How to map a String[] in hibernate
body: <p>How would you map the following class in hibernate:</p>
  
  <pre><code>private class Book {
      private int id;
      private String title;
      private String[] chapterTitles;
  
      //Constructor, Getters and Setters
  }
  </code></pre>
  
  <p>I have mapped Collections and primitive arrays in Hibernate, but how do I do it with a <strong>String[]</strong>? My hibernate tools stops with a 'NullPointerException' thereby I am unable to generate the mappings. And I have googled but couldn't find any.</p>