Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to generate DB queries "automatically" #155

Open
lucascs opened this issue Nov 28, 2009 · 2 comments
Open

Provide a way to generate DB queries "automatically" #155

lucascs opened this issue Nov 28, 2009 · 2 comments

Comments

@lucascs
Copy link
Member

lucascs commented Nov 28, 2009

Use the project: http://github.com/caelum/dynamicRepositoryBuilder that creates the implementation of the queries based on an interface. So you just create an interface like:

   @Component // or other annotation, perhaps
   public interface ProductRepository extends Repository {
       List findByName(String name);
   }

and receive this interface on your components constructor and VRaptor will provide an implementation using the project above.

@garcia-jj
Copy link
Member

The core of vraptor is to be a controller framework? I think that use a mixture of "many other things" shifts the vraptor proposal.

In a few times, the vraptor will be an elephant.

But... this is only a opinion of a "Vraptor Lover".

@lucascs
Copy link
Member Author

lucascs commented Apr 9, 2010

This feature should not be in vraptor-core... It should be a plugin...

VRaptor core will always be a controller... but we can add some helpers for view and model as plugins or addons...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants