Posts by Renato Barata Gomes • 29 points
6 posts
-
0
votes1
answer524
viewsA: How to save a custom Enum name in the database?
To solve the problem I used another type of convert: @Converter(autoApply = true) public class TipoPessoaConverter implements AttributeConverter<TipoPessoa, String> { @Override public String…
-
0
votes1
answer1081
viewsA: Error: java.lang.Illegalargumentexception: id to load is required for loading
Only to share the solution of this problem. The error was in the Registration class. Where was: Processo processoExistente = processos.porId(processo.getId()); I replaced it with: Processo…
-
0
votes1
answer1081
viewsQ: Error: java.lang.Illegalargumentexception: id to load is required for loading
I am not able to save data in the database. I created a generated id to customize the primary key in the BD. The field is called id and he’s a String. I made a test class and it’s working, but when…
-
0
votes1
answer524
viewsQ: How to save a custom Enum name in the database?
I have an Enum Type which has a JURIDICAL person and a PHYSICAL person. I created a custom name (Legal) and (Physical). I’m getting to appear on the screen the custom name, but in the database is…
-
0
votes3
answers103
viewsA: I’m not able to log data into the database
Just to record that I just found the error in the.xhtml registration file, in selectOneMenu. Was: <p:selectOneMenu id="pais" value="#{cadastroEstadoBean.pais}" > Should be: <p:selectOneMenu…
-
2
votes3
answers103
viewsQ: I’m not able to log data into the database
I’m a beginner in java and I have the following problem. On the state registration screen, I have a country selectOneMenu, and two fields for name and acronym. When I go to save in the database I…