OK, I just checked in two more archetypes for JPA: lift-archetype-jpa-blank - same as the basic one, but with only the bare minimum set of files for a JPA project with separate Persistence and Web modules lift-archetype-jpa-blank-single - same as blank, but set up to all be in a single project instead of using modules.
Derek On Sun, Apr 5, 2009 at 10:23 AM, Derek Chen-Becker <[email protected]>wrote: > Ah, I forgot to check in the BookOps.add.doAdd method whether or not the > author was set. There should be a check there with an error that would > prevent a book from not having an author. Even better, I should update the > Book entity object to put a not-null constraint on the author property. I'll > get this fixed in the archetype and in the demo site. > > Derek > > > On Sat, Apr 4, 2009 at 5:04 PM, bradford <[email protected]> wrote: > >> >> I pasted it here: http://pastebin.com/m1da32b3 >> >> Thanks, >> Bradford >> >> On Apr 4, 5:25 pm, Derek Chen-Becker <[email protected]> wrote: >> > If you have a second, could you send the stack trace for the NPE? That's >> > definitely not something that should be happening. >> > >> > Derek >> > >> > On Sat, Apr 4, 2009 at 2:34 PM, bradford <[email protected]> wrote: >> > >> > > Yeah, just NetBeans. It probably makes sense, but everything in >> > > NetBeans was fine after I did mvn compile; mvn install. Running the >> > > app works too. I did happen to get a NullPointerException when I >> > > would add a book with no author. And then again when I would click on >> > > Book list. Just an FYI. >> > >> > > Thanks a lot for the demo and your help. >> > >> > > Thanks, >> > > Bradford >> > >> > > On Apr 4, 3:26 pm, Derek Chen-Becker <[email protected]> wrote: >> > > > Hmmm. Does maven complain if you try to compile, or is it just >> NetBeans? >> > >> > > > Derek >> > >> > > > On Sat, Apr 4, 2009 at 9:31 AM, bradford <[email protected]> >> wrote: >> > >> > > > > Hi, >> > >> > > > > I think I would like to use JPA for my project. This archetype >> would >> > > > > be nice. Just a second ago I ran mvn archtype:generate on lift- >> > > > > archetype-jpa-basic. NetBeans is complaining on 'import >> > > > > javax.persistence._' not being found in jpatest-spa's >> Author.scala. >> > > > > It also complains on 'import org.scala_libs.jpa._' in >> jpatest-web's >> > > > > Model.scala. >> > >> > > > > Thanks, >> > > > > Bradford >> > >> > > > > On Apr 3, 4:45 am, "Charles F. Munat" <[email protected]> wrote: >> > > > > > No, I meant there were a few candidates for a first commit, not >> that >> > > > > > someone else should do it. I have my fingers in a bunch of >> things at >> > > the >> > > > > > moment... >> > >> > > > > > At the moment, however, I have to pay the bills. But I'll keep >> > > tinkering. >> > >> > > > > > Chas. >> > >> > > > > > Timothy Perrett wrote: >> > > > > > > Probally between yourself and Derek in all honesty - I simply >> dont >> > > > > > > have the time right now and my "lift time" and what I do with >> it >> > > has >> > > > > > > other investments right now... >> > >> > > > > > > Derek might well be swamped with the book at the moment... so >> > > perhaps >> > > > > > > there are not so many candidates as you think :-) >> > >> > > > > > > Crack on is what I say - make a branch, knock yourself out and >> then >> > > > > > > post to the list before merging to master >> > >> > > > > > > Cheers, Tim >> > >> > > > > > > On Apr 2, 7:17 pm, "Charles F. Munat" <[email protected]> wrote: >> > > > > > >> Yup. But there seem to be a few candidates... >> > >> > > > > > >> Timothy Perrett wrote: >> > > > > > >>> Are you eyeing up for your first commit Chas? ;-) >> > > > > > >>> The src of the JPA archetype is here: >> > >> > > > > >> http://github.com/dpp/liftweb/tree/4a5d4530b407782a2f0e0e99b277432dbb. >> > > .. >> > > > > > >>> Cheers, Tim >> > > > > > >>> On Apr 2, 6:02 pm, "Charles F. Munat" <[email protected]> >> wrote: >> > > > > > >>>> Where is the code for these archetypes and how tricky is it >> to >> > > > > create them? >> > > > > > >>>> Chas. >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
