Franscis123$#
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 3/30/2025 in #java-help
Searching DB registers by other field instead PK using JPA
I build my method like this, what you think?
13 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 3/30/2025 in #java-help
Searching DB registers by other field instead PK using JPA
Nothing, now I see that 'em' is initialized individually in each method and not globally.
13 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 3/30/2025 in #java-help
Searching DB registers by other field instead PK using JPA
If I need to use PersistenceContext, this will affect to others methods that uses 'em' ?
13 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/18/2025 in #java-help
Cannot invoke "jakarta.persistence.EntityManagerFactory.createEntityManager()" "this.emf" is null
No, Its just uses Maven, and me too
14 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/18/2025 in #java-help
Cannot invoke "jakarta.persistence.EntityManagerFactory.createEntityManager()" "this.emf" is null
Its calls to create method from RolJpaController create method. I'm new using JPA, and I watched a tutorials to apply it to my proyect, In its was done like that way.
14 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/18/2025 in #java-help
Cannot invoke "jakarta.persistence.EntityManagerFactory.createEntityManager()" "this.emf" is null
Rol
14 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/18/2025 in #java-help
Cannot invoke "jakarta.persistence.EntityManagerFactory.createEntityManager()" "this.emf" is null
Main
14 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/18/2025 in #java-help
Cannot invoke "jakarta.persistence.EntityManagerFactory.createEntityManager()" "this.emf" is null
LogicController
14 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
How could create the EntityManagerFactory in the Persistence Controller?
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
Also I used NetBeans only to generate the JpaControllers, because IntelliJ Community don't have these options with premium, and it generate one for each class.
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
I don't tried it because I don't have tables in my database
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
IntelliJ IDEA Community
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
I created a JpaController class for each class
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
Adding to persistence.xml don't solve it, neither with true
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
pom.xml:
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 2/3/2025 in #java-help
The collection of metamodel types is empty
All of my classes have a similar mapping:
32 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 1/30/2025 in #java-help
No Persistence provider for EntityManager named IceCreamShopPU
I put it before <persistence-unit> and marks it as wrong
40 replies
JCHJava Community | Help. Code. Learn.
•Created by Franscis123$# on 1/30/2025 in #java-help
No Persistence provider for EntityManager named IceCreamShopPU
This is incomplete or is just that?
40 replies