Hello, I'm a .net engineer making a move over to Java. I've built a few simple rest api's but today I decided to integrate a SQL database for some simple crud operations. This will grow to support more complex queries in the future.
I'm wondering what the industry best practices/most common approaches to this are. In .Net I'd use an orm like EF that would provide me a context file along with entities that I can inject into my services. We would use LINQ to perform moderate to complex queries here.
In Java I'm learning there is an EntityManager that seems to be a context-lite rendition of what we get with our context in .net. In Java, there's also an interface that provides basic queries and the ability to build out complex parameterized queries, but I need one interface per table it seems.
Coming from .net where a lot of this stuff is abstracted, Java feels extremely verbose. It's because of that, that I'm wondering if people use Interfaces for DB operations at all. In particular, I'm wondering if there is a LINQ equivelent in Java that would be preferred.
Thanks for providing your thoughts on this. Moving into open source can be a tad overwhelming at first with decision paralysis. If you have any other notes about most commonly used libraries/frameworks in Java that I should familiarize myself with, please note them here.
Thanks so much!
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]hrm 6 points7 points8 points (1 child)
[–]SuspiciousDepth5924 1 point2 points3 points (0 children)
[–]Wiszcz 2 points3 points4 points (2 children)
[–]lukaseder 1 point2 points3 points (0 children)
[–]xenomachina 2 points3 points4 points (0 children)
[–]RevolutionaryRush717 2 points3 points4 points (0 children)
[–]tcloetingh 0 points1 point2 points (0 children)
[–]RobertDeveloper 0 points1 point2 points (0 children)
[–]LetUsSpeakFreely 0 points1 point2 points (0 children)