Re: Dynamic mapping

2017-01-20 Thread Hugi Thordarson
port it to Cayenne in > the future releases if we are to pursue the topic of dynamic mapping. > > Andrus > >> On Jan 20, 2017, at 8:24 AM, Hugi Thordarson wrote: >> >> As someone who uses multiple Cayenne projects in separate jars a lot (I have >> a proj

Re: Dynamic mapping

2017-01-20 Thread Andrus Adamchik
Here it is: https://gist.github.com/andrus/29616d6f20fc5094a4eb77114d751db0 Hides lots of verbosity in Cayenne mapping API. We may port it to Cayenne in the future releases if we are to pursue the topic of dynamic mapping. Andrus > On Jan 20, 2017, at 8:24 AM, Hugi Thordarson wrote: >

Re: Dynamic mapping

2017-01-20 Thread Hugi Thordarson
ly I encountered a good > use case that was solved by dynamic mapping - reusable ORM modules. > > Say I have a reusable lib.jar containing a Cayenne project and some > persistent code built around it. Now I want to use it in app.jar (or app.war > if you are still on JavaEE). app

Re: Dynamic mapping

2017-01-19 Thread Eric Schneider
various presentations that Cayenne supports generic > objects and you can create mapping in runtime. I didn't have many real-life > examples to demonstrate the need until now. But recently I encountered a good > use case that was solved by dynamic mapping - reusable ORM modules.

Dynamic mapping

2017-01-19 Thread Andrus Adamchik
xamples to demonstrate the need until now. But recently I encountered a good use case that was solved by dynamic mapping - reusable ORM modules. Say I have a reusable lib.jar containing a Cayenne project and some persistent code built around it. Now I want to use it in app.jar (or app.war if you are