title: How to map the type in grails to the user defined type in oracle database
body: <p>I have a domain called People </p>
  
  <pre><code>class People 
  {
  Integer id
  Person person
  
  static mapping = {
      id generator: 'sequence',
         params: [table: 'PEOPLE', column: 'ID', max_lo: 100]
         person column: "currency", sqlType: "char", length: 3
  
      person column : 'PERSON', sqlType: "PERSONOBJ"
  
  }
  }
  </code></pre>
  
  <p>AND A domain called person </p>
  
  <pre><code>class Person {
  String last_Name
  String first_Name
  }
  </code></pre>
  
  <p>I want to know how to use GORM to map people to oracle 
  <a href="http://i.stack.imgur.com/UO7Tl.png" rel="nofollow">People Table</a></p>
  
  <p>Person data type is PersonObj. This is the user-define type like the following : </p>
  
  <pre><code>create or replace TYPE PersonObj AS OBJECT (
     first_name  VARCHAR2(50),
     last_name   VARCHAR2(50)
   );
  </code></pre>
  
  <p>The question is how to map the domain class people to the people table in grails? </p>