cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malcolm Edgar" <malcolm.ed...@gmail.com>
Subject Re: How to migrate from Hibernate to Cayenne?
Date Thu, 21 Feb 2008 22:37:57 GMT
<rant>

Well personally I think the whole POJO thing has been completely over
done. Sure EJB entity beans were not much fun, but saying everything
should now extend java.util.Object is stupid.  With persistence API
entities need a bunch of support, you can use Cayenne model where you
subclass intelligent objects, or you can use "black magic" runtime
byte code enhancement.  I prefer the former because I can drill
through the code, and use a debugger. However all the fashion now days
it to go down the byte code enhancement path.

This is particularly stupid with Web frameworks, which have recently
adopted this fashion.  Now you see POJO's being used as a kind of a
page, with a bunch of annotations, maybe some XML configuration files,
and then some special byte code enhancement.  No decent windowing UI
framework has ever taken this approach Dephi, Swing, Flex.

The thing that I find really ironic, is that the Hibernate guys who
were using reflection previously bet the crap out of JDO camp, because
JDO were using invasive post compilation byte code enhancement.  Now
Hibernate now are using runtime byte code enhancement, but have still
manage to kill JDO, and create a new JPA based on their design.

</rant>

regards Malcolm Edgar

On Fri, Feb 22, 2008 at 1:49 AM, Borut BolĨina <borut.bolcina@gmail.com> wrote:
> Hello,
>
>  since when can modeler generate POJOs? AFAIK those generated classes extend
>  CayenneDataObject which in turn implements three interfaces, therefore
>  making it a complex object model.
>
>  Did I miss something lately?
>
>  -Borut
>
>  2008/2/20, Scott Anderson <sanderson@airvana.com>:
>
>
> >
>  > Tom,
>  >
>  > Take a look at the Cayenne Modeler; there is a feature to "Reengineer
>  > Database Schema" on the tools menu. You may be unable to do this with
>  > standard user-level permissions, depending on your database type and
>  > configuration. Then you'll be able to generate the POJOs which should
>  > resemble quite closely your hibernate POJOs.
>  >
>  > Regards,
>  >
>  > Scott
>  >
>  >
>  > -----Original Message-----
>  > From: Thomas Bernhard [mailto:tbernhard@yahoo.com]
>  > Sent: Wednesday, February 20, 2008 2:09 PM
>  > To: user@cayenne.apache.org
>  > Subject: How to migrate from Hibernate to Cayenne?
>  >
>  >
>  > Hi,
>  >
>  > Is there a migration guide from Hibernate(especially 2.x.x) to Cayenne
>  > (whatever version)?
>  >
>  > Or even better, is there maybe some tool that helps this even further?
>  > (when moving from Velocity to Freemarker there's a tool to automate
>  > this, and even other frameworks have "migration" tools to help uses move
>  > from the concurrence :) )
>  >
>  > Thank you,
>  >
>  > Tom.
>  > --
>  > View this message in context:
>  > http://www.nabble.com/How-to-migrate-from-Hibernate-to-Cayenne--tp155961
>  > 60p15596160.html
>  > Sent from the Cayenne - User mailing list archive at Nabble.com.
>  >
>  >
>
Mime
View raw message