Results 1 to 3 of 3

Thread: Get rid of JPA repository pattern

  1. #1
    Join Date
    Mar 2005
    Posts
    11

    Cool Get rid of JPA repository pattern

    Hi
    I have started to learn Roo;which by the way is fantastic!; I am reading Roo in Action MEAP from Manning, I build my first project with active record pattern, then I decided to try the Repository pattern with help of the repository jpa command with one interface and the entity class named Course (without removing nothing from Active record stuff) I made a couple of test cases and every thing went just fine.I decided to stick with Active record pattern and get rid of the repository stuff but couldn't find something like repositlry jpa -remove so i delete the repository class, STS automatically removed the related ITD but the integration test case class was broken so i started to play around and then after modifying a TDS Test case file (now I know why you NEVER NEVER should mess around with these files) my hole project went down. To make a long story short I had to delete my project and star over again. I't was not a big deal since it was a learning project, but i am anxious to start my next official project and I would love to know the correct procedure to get rid of jpa repository in case i had to.

    Any help or directions will be highly appreciated
    Thanks

    PD to the SpringSource Roo creators,contributors,supportes GREAT GREAT JOB

  2. #2
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Smile

    Just remove @RooJpaEntity and replace with @RooJpaActiveRecord, save and fire up the shell.
    Ken Rimple
    Chariot Solutions
    email: krimple@chariotsolutions.com
    work: www.chariotsolutions.com/education
    personal: www.rimple.com

    Author: Spring Roo in Action (Manning)
    MEAP Site: manning.com/rimple

  3. #3
    Join Date
    Mar 2005
    Posts
    11

    Default

    Thanks Ken I will try this. By the way your book is great, I mean great it's been a fantastic tool in my Spring Roo learning journey
    thanks and have a good day

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •