Posts by Rafael Augusto • 313 points
11 posts
-
2
votes1
answer65
viewsQ: Registration with Validation
currently my system has Person and Time, a person can already create a Time, defining some attributes(name and passwordTime). Now, I aim to create a "Join Team" method where someone will join an…
-
2
votes1
answer130
viewsA: Detached Exception in associative table
Solved! The error was in the attributes Cascadetype: Person: @OneToMany(mappedBy = "pessoa", cascade = CascadeType.DETACH) private List<PessoaTime> listaPessoaTime; Team: @OneToMany(mappedBy =…
-
4
votes1
answer130
viewsQ: Detached Exception in associative table
I am finding the following problem when making a certain registration: Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity…
-
3
votes1
answer408
viewsQ: Search in associative table
How can I do an associative table search ? There are two entities, Pessoa and Time. Where I came from the Personal association_time that has id_person and id_time. My goal is to list all the id_time…
-
1
votes1
answer561
viewsQ: Persist associative table in manyTomany
I have the following problem: How will I persist in an associative table that has no class ? I have two classes: Person and Time, where I want to make the relationship between people and teams. In…
-
0
votes1
answer267
viewsQ: Working with associative tables
I want to add to a table, the users who registered a team. So that in the future can list all teams of a certain user. However, I have the following problem: In my personal table The class that…
-
0
votes1
answer166
viewsQ: javax.persistence.Entitymanager.createQuery(Ljava/lang/String;Ljava/lang/Class;)Ljavax/persistence/Typedquery;
I have the following problem in developing my application’s user authentication and password: jun 30, 2016 8:49:27 AM com.sun.faces.lifecycle.InvokeApplicationPhase execute ADVERTÊNCIA:…
-
1
votes2
answers1127
viewsQ: Validation Login and Password Primeface and JSF
I have a very simple system of Registration and Login, I made a validation in both fields. I want to adapt this validation to something more specific like: Login does not exist Password invalidates…
-
-5
votes1
answer503
viewsQ: Create a numerical sequence by storing in Arraylist
I need to develop a Java algorithm that returns the following sequence: 9, 16, 25, 36, 49... I’ve identified that the pattern is as follows: 9 = 3² 16 = 4² 25 = 5² 36 = 6² Values need to be stored…
-
4
votes2
answers232
viewsQ: Power method and exception treatment
I must resolve the following exercise but I have some doubts: Create a class with only one method power, which receives 2 numbers and calculates the number 1 to the number 2. This process must…
-
3
votes2
answers679
viewsQ: Use of instanceof
Create an abstract class Conta, and two other concrete classes ContaF and ContaJ inherited from the main class. Create another class with a method that receives a list of contaF and ContaJ and…