Posts by Augusto Silverio • 69 points
6 posts
-
1
votes0
answers20
viewsQ: Null object in View
The request: @Entity @Table(name="wp_posts") public class Pedido implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id;…
-
0
votes1
answer34
viewsQ: Magic Cast - Convert String to Various Object Types
Class: @Entity public class ReportParam extends AbstractModel implements JRParameter { @Column private String nome; @Column private String descricao; @Column private Class<?> classe; The goal:…
javaasked Augusto Silverio 69 -
3
votes1
answer397
viewsQ: Annotation @Manytomany in the same entity/table
My Class: @Entity public class Report extends AbstractModel implements IReport { @Column private String nome; @Column private byte[] arquivoJrxml; @ManyToMany private List<Report> subReports;…
-
0
votes3
answers422
viewsA: Update in the same table
Good afternoon, This very vague your need, if you want to update between a date range use BETWEEN update suaTabela set seuCampo = seuDado where seuCampo between dataInicial and dataFinal;…
sqlanswered Augusto Silverio 69 -
0
votes1
answer294
viewsQ: Longtext MYSQL Persistence Variable Type
Good morning, In my database Mysql, I have a column of the type longText. My doubt is how to declare the type and annotation of this variable in the java class. Soon search found the following…
-
2
votes1
answer1072
viewsQ: Notes JPA @Onetomany or Manytoone?
I own the Report Class public class Report{ private String nome; @ManyToOne @JoinColumn( name = "idpai", referencedColumnName = "id" ) private List<Report> subReports getters e setters... } My…