title: Data nucleus spatial mapping error
body: <p>I was trying to connect spatial types with datanucleus.</p>
  
  <p>I have in database field called pla_location in "place" table, which is mysql GEOMETRY type </p>
  
  <p>I did mapping as below:</p>
  
  <pre><code>&lt;entity class="com.dn.dntest.model.Place"&gt;
  &lt;table name="place" schema="map"/&gt;
      &lt;attributes&gt;
      ...
      &lt;basic name="plaLocation"&gt;
          &lt;column name="pla_location" /&gt;
      &lt;/basic&gt;            
      ...
  </code></pre>
  
  <p>In Place java object I have:</p>
  
  <pre><code>import com.vividsolutions.jts.geom.Geometry;
  
  public class Place implements java.io.Serializable {
  ...
  private Geometry plaLocation;
  
  ...
  (getters and setters)
  ...
  </code></pre>
  
  <p>And now I'm asking database through "query" </p>
  
  <pre><code>Query q = em.createQuery("select a FROM com.dn.dntest.model.Place as a");
  List results = q.getResultList();
  </code></pre>
  
  <p>And the result is</p>
  
  <pre><code>Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'P.PLALOCATION' in 'field list'
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  at com.mysql.jdbc.Util.getInstance(Util.java:386)
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)
  at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)
  at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2293)
  at org.datanucleus.store.rdbms.datasource.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
  </code></pre>
  
  <p><strong>But if I change the Geometry type to for instance String, everything works well - but, of course I will have string instead of Geometry :)</strong></p>
  
  <p>Does it mean that data nucleus doesn't support spatial in JPA (only JDO)? 
  I couldn't find any example for JPA spatial in data nucleus - and this is a basic mapping!
  May someone will know how to resolve this problem</p>
  
  <p>Versions: 
  datanucleus-core 3.0.6
  datanucleus-rdbms 3.0.6
  datanucleus-api-jpa 3.0.6
  datanucleus-spatial 3.0.1</p>
  
  <p>Database mysql </p>
  
  <p>Best regards</p>