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

Not able to access repository class inside DTO object. #8

Open
lokesh435 opened this issue Feb 28, 2021 · 0 comments
Open

Not able to access repository class inside DTO object. #8

lokesh435 opened this issue Feb 28, 2021 · 0 comments

Comments

@lokesh435
Copy link

@morellik I used @Inject private UserRepository userRepository; declaration as per instructions. But I can only access it inside UserController class not UserData class (DTO object for user registration form). I used the same declaration @Inject private UserRepository userRepository inside UserData class but it returns null pointer exception at the runtime. Please help me resolve this issue.

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

No branches or pull requests

1 participant