C
C
Chvalov2017-09-30 12:53:26
Java
Chvalov, 2017-09-30 12:53:26

What to learn with hibernate?

I am learning to develop websites and work with a database in Java
While I am playing with parsers and working with a database I am learning
Hibernate, though I don’t know which technologies are already outdated and not used
For example, I make a selection using Criteria, and writing in the database, as I understand it, is not a criterion is able, on it I use hql requests
Question: what sense then with criteria if she is able only to do selections?
Is there something unique that is convenient for sampling, recording, deleting, etc. ? (JPA?)
And what else would you advise to learn in parallel with hibernate to raise the skill and get an easy start in Spring mvc?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kosarev, 2017-10-01
@Chvalov

Here, for example, I make a selection using Criteria, but as I understand it, I can’t write a criterion in the database, so I use hql queries

Hibernate uses session.save() and session.merge() to insert, no need to be smart with HQL. Examples .
The meaning of the criteria is in the selection (but it is more convenient for me to use JPQL / HQL).
If together with Spring, then I advise you to learn first of all JPA and the associated Spring Data JPA. For convenience, you can also pay attention to Spring Boot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question