Jonathon Roberts

Greenhorn
+ Follow
since Feb 08, 2018
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jonathon Roberts

Hi

I am using the community edition of intelli-j and was hoping to find a way or plugin to build my JPA entities based of an existing schema.
Is this possible at all?

Thanks
6 years ago
Thanks Pete!

I had briefly seen the tutorial you mentioned before, but I'll look into it in more detail.
I'm still trying to fully understand all the annotations and when/where to use them.
But you answered my question! It seems i'll need a controller to to manage the access to certain end points, just wasn't sure if I was missing pieces to Spring and going about it wrong!

Thanks
6 years ago
Hi

I'm new to Java and Spring but not programming. This is my first post and I read that this was a good place to help with Java

I'm looking to build a REST API and I was going through some Spring tutorials (https://spring.io/guides/gs/accessing-data-rest/ + https://spring.io/guides/gs/rest-service/).

I noted that the one uses the restful controller approach and the other uses the RepositoryRestResource and omits the controller. I guess I'm trying to find out which would be the better approach. To give more ideas on my API. I basically envisage it needing some authentication (likely OAuth) and authorization. eg authenticated to view x and authorized to edit x.

I'm looking for my API to then power a website and then iOS / Andoird if necessary.

On a related side note, I just wondered if there were any tools to generate JPA entity classes from an existing DB structure? I'm using intellij community

Thanks  
6 years ago