More good news. I used JPA provider instead of hibernate by looking at your
latest codes to make Wicketopia works on GAEJ.

Also have to change the JpaPersistenceProvider in such a way -

    public int getCount(Class<?> entityType)
    {
      Integer results = (Integer) entityManager.createQuery("select
count(obj) from " + entityType.getName() + " obj").getSingleResult();
      return results.intValue();
//        List results = entityManager.createQuery("select count(*) from " +
entityType.getName()).getResultList();
//        return ((Number)results.get(0)).intValue();
      
    }

I left off at the create method while saving the Person. Error is -

java.lang.UnsupportedOperationException: This feature isn't available until
JPA 2.0

You can try yourself at http://cloudserviceapi.appspot.com/app/ to see the
error. Note that I removed some fields like start date and end date as they
were on my way to complete the "port" :(

I have proven my track record, could you make me a committer of project
Wicketopia now :) ?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ANNOUNCE-Wicketopia-0-9-Released-tp3418771p3661400.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to