-
Notifications
You must be signed in to change notification settings - Fork 42
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
Домашнее задание по hibernate #1
base: master
Are you sure you want to change the base?
Conversation
@@ -1,2 +1,32 @@ | |||
# Project exclude paths |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ой... чёт лишнее в ПР вылезло
.createQuery("from Employer employer", Employer.class) | ||
.createQuery( | ||
"SELECT e FROM Employer as e " + | ||
" JOIN FETCH e.vacancies " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LEFT join fetch будет лучше, если у работодателя нет вакансий, он не выберется
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправление внес, думал, LEFT по умолчанию идет.
@@ -4,17 +4,17 @@ | |||
import ru.hh.school.employers.StatisticsDto; | |||
import ru.hh.school.entity.Area; | |||
|
|||
public class VacancyDao extends GenericDao{ | |||
public class VacancyDao extends GenericDao { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
точняк, нужно проект на стиль проверить )
Интересно, но мало.