[Lift] Re: Schema management with JPA
I can't make any guarantees, but this is something we're trying to address with the upcoming Record framework. The other thing is that you can mix the two if there are certain things you like about Mapper (say, MegaProtoUser). Derek On Tue, Mar 24, 2009 at 2:18 AM, Alex a...@liivid.com wrote: I decided against JPA because you lose a lot of framework functionality which it seems is unfortunately tied to the Mapper classes. On Mar 23, 12:15 pm, saem saemgh...@gmail.com wrote: I suggest checking outhttp://www.liquibase.org/ It's the best open source database change management tool I've come across to date. On Mar 20, 11:18 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Well. I think it depends. I know that if you use the hibernate provider that you can set a property to automatically create/update the schema when it runs. You can look at the JPA Demo site in the Lift repo: http://github.com/dpp/liftweb/blob/794cac5abf6b1ae5502f6321847f6186fc. .. The relevant property is hibernate.hbm2ddl.auto I haven't used TopLink but it appears to have a subset of this functionality: http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/. .. The caveat is that with Hibernate it can alter existing tables to match changes in your entities, but toplink appears to do a drop-then-add, which kind of sucks. I haven't looked at JPOX or any other JPA impls. Derek On Fri, Mar 20, 2009 at 7:13 PM, Alex a...@liivid.com wrote: I'm going through the recently announced book and JPA looks pretty attractive. There is no mention of schema management - e.g. creating and modifying tables. Is there any or is that all done manually? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Schema management with JPA
That would rock. Having HTML generation part of the orm is making me think twice about the design of this framework. It seems very wrong to me. On Mar 24, 6:05 am, Derek Chen-Becker dchenbec...@gmail.com wrote: I can't make any guarantees, but this is something we're trying to address with the upcoming Record framework. The other thing is that you can mix the two if there are certain things you like about Mapper (say, MegaProtoUser). Derek On Tue, Mar 24, 2009 at 2:18 AM, Alex a...@liivid.com wrote: I decided against JPA because you lose a lot of framework functionality which it seems is unfortunately tied to the Mapper classes. On Mar 23, 12:15 pm, saem saemgh...@gmail.com wrote: I suggest checking outhttp://www.liquibase.org/ It's the best open source database change management tool I've come across to date. On Mar 20, 11:18 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Well. I think it depends. I know that if you use the hibernate provider that you can set a property to automatically create/update the schema when it runs. You can look at the JPA Demo site in the Lift repo: http://github.com/dpp/liftweb/blob/794cac5abf6b1ae5502f6321847f6186fc. .. The relevant property is hibernate.hbm2ddl.auto I haven't used TopLink but it appears to have a subset of this functionality: http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/. .. The caveat is that with Hibernate it can alter existing tables to match changes in your entities, but toplink appears to do a drop-then-add, which kind of sucks. I haven't looked at JPOX or any other JPA impls. Derek On Fri, Mar 20, 2009 at 7:13 PM, Alex a...@liivid.com wrote: I'm going through the recently announced book and JPA looks pretty attractive. There is no mention of schema management - e.g. creating and modifying tables. Is there any or is that all done manually? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Schema management with JPA
I suggest checking out http://www.liquibase.org/ It's the best open source database change management tool I've come across to date. On Mar 20, 11:18 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Well. I think it depends. I know that if you use the hibernate provider that you can set a property to automatically create/update the schema when it runs. You can look at the JPA Demo site in the Lift repo: http://github.com/dpp/liftweb/blob/794cac5abf6b1ae5502f6321847f6186fc... The relevant property is hibernate.hbm2ddl.auto I haven't used TopLink but it appears to have a subset of this functionality: http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/... The caveat is that with Hibernate it can alter existing tables to match changes in your entities, but toplink appears to do a drop-then-add, which kind of sucks. I haven't looked at JPOX or any other JPA impls. Derek On Fri, Mar 20, 2009 at 7:13 PM, Alex a...@liivid.com wrote: I'm going through the recently announced book and JPA looks pretty attractive. There is no mention of schema management - e.g. creating and modifying tables. Is there any or is that all done manually? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Schema management with JPA
Well. I think it depends. I know that if you use the hibernate provider that you can set a property to automatically create/update the schema when it runs. You can look at the JPA Demo site in the Lift repo: http://github.com/dpp/liftweb/blob/794cac5abf6b1ae5502f6321847f6186fcd8de90/sites/JPADemo/JPADemo-spa/src/main/resources/META-INF/persistence.xml The relevant property is hibernate.hbm2ddl.auto I haven't used TopLink but it appears to have a subset of this functionality: http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink-jpa-extensions.html#Java2DBSchemaGen The caveat is that with Hibernate it can alter existing tables to match changes in your entities, but toplink appears to do a drop-then-add, which kind of sucks. I haven't looked at JPOX or any other JPA impls. Derek On Fri, Mar 20, 2009 at 7:13 PM, Alex a...@liivid.com wrote: I'm going through the recently announced book and JPA looks pretty attractive. There is no mention of schema management - e.g. creating and modifying tables. Is there any or is that all done manually? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---