In this stream, we discuss the JPA specification and learn to implement the persistence layer of a Java app using a JPA implementation such as Hibernate.
Жүктеу.....
Пікірлер: 11
@user-uc4fu1qi8q6 ай бұрын
The explanation about "select p from Product p" vs. "select * from Product" starting around time point 19:00 was GOLD. Thank you so much.
@FailMachineInc9 ай бұрын
thank you, appreciate the series
@mitchd.94143 ай бұрын
Laurentiu, would you be kind enough please, to make a series about microservices and how to develop microservices, when there are relationships between entities, so when each microservice represents an entity and is linked with another microservices in relations 1:1 1:m, m:1 or m:n relations. How do we support this llinkage between entities, which are now divided among different mcroservices, if relationship annotations do not work here any longer ?
@java_tar6 ай бұрын
thanks so much for the series very informative i usually don't write the entity classes manually like i see you do here i just set the value in the persistence unit the exclude-unlisted-classes to false which just maps all my entities directly is that a bad approach ?
@mihaiforfota30098 ай бұрын
Unfortunately the JPQL is limited to only a few functions like count, avg, min, max. At some point I had to create query (left join) and to use functions like string_agg / array_agg and the resulted query could only be a native one.
@laurspilca
8 ай бұрын
Hi. If you can't avoid using JPQL you may use native queries. I will show you some alternatives to do that in one of the next episodes. But mind that this should be only for corner cases.
@maksadnahibhoolna-wc2ef8 ай бұрын
How does JPQL compare to LINQ in dotnet environment
@laurspilca
8 ай бұрын
Hello. Sorry. I cannot make such a comparison. I am not a .NET developer.
@MallikarjunReddy359 ай бұрын
Select Count(1) or Select Count(*) which one is better to use while coding
@akshaypande7115
9 ай бұрын
Select count(1)
@laurspilca
9 ай бұрын
I would say select count(1) if what you want is just counting the records. But this is a SQL question and remember that even if as any other developer I work and am professional with SQL, I'm not at expert in it. Maybe you want to rise this question (or others related) to Vlad Mihalcea?
Пікірлер: 11
The explanation about "select p from Product p" vs. "select * from Product" starting around time point 19:00 was GOLD. Thank you so much.
thank you, appreciate the series
Laurentiu, would you be kind enough please, to make a series about microservices and how to develop microservices, when there are relationships between entities, so when each microservice represents an entity and is linked with another microservices in relations 1:1 1:m, m:1 or m:n relations. How do we support this llinkage between entities, which are now divided among different mcroservices, if relationship annotations do not work here any longer ?
thanks so much for the series very informative i usually don't write the entity classes manually like i see you do here i just set the value in the persistence unit the exclude-unlisted-classes to false which just maps all my entities directly is that a bad approach ?
Unfortunately the JPQL is limited to only a few functions like count, avg, min, max. At some point I had to create query (left join) and to use functions like string_agg / array_agg and the resulted query could only be a native one.
@laurspilca
8 ай бұрын
Hi. If you can't avoid using JPQL you may use native queries. I will show you some alternatives to do that in one of the next episodes. But mind that this should be only for corner cases.
How does JPQL compare to LINQ in dotnet environment
@laurspilca
8 ай бұрын
Hello. Sorry. I cannot make such a comparison. I am not a .NET developer.
Select Count(1) or Select Count(*) which one is better to use while coding
@akshaypande7115
9 ай бұрын
Select count(1)
@laurspilca
9 ай бұрын
I would say select count(1) if what you want is just counting the records. But this is a SQL question and remember that even if as any other developer I work and am professional with SQL, I'm not at expert in it. Maybe you want to rise this question (or others related) to Vlad Mihalcea?