facebook

Scaffolding both Security and CRUD – resolution of conflict?

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #315400 Reply

    Greg Soulsby
    Member

    I would like to
    a) add a database based security layer to my app
    b) Update the resultant User table with some of my own attributes and relationships
    c) CRUD Scaffold that table into my app

    I did this by running the security scaffolding wizard, which generated the User table, then updated the table with my attributes and relationships. Then re-ran both security and CRUD scaffolding.

    The problem is that packagename-generated-dao-context.xml is now in error, although with no error details. The console error when running the app says “Annotation-specified bean name “UsersDAO” conflicts with non-compatible bean defintion of same name and class.

    It looks like the problem is that there are now 2 UsersDAOImpl.

    Suggested approach anyone?

    Thanks

    #315613 Reply

    jkennedy
    Member

    I think the approach you used should generate 95% of what you need.

    You may need to remove the extra DAO and do some other code cleanup since you are rerunning scaffolding on the same entity in two different passes, once to get the User entity from the Security scaffolding and then again from the CRUD scaffolding.

    Thanks,
    Jack

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Scaffolding both Security and CRUD – resolution of conflict?

You must be logged in to post in the forum log in