Questions tagged as 'jpa'

0
answers

kotlin (Spring boot 2 + JPA + mysql) - Error creating bean with name

I'm working with kotlinVersion = '1.2.51' springBootVersion = '2.0.5.RELEASE' java 8 but I have an error when compiling the code I get something like org.springframework.beans.factory.UnsatisfiedDependencyException: Error crea...
asked by 24.09.2018 / 22:59
1
answer

java.lang.NoSuchMethodError: javax.persistence.Table.indexes () [Ljavax / persistence / Index;

I've been working on a web project with jpa 2.1, it turns out that I have problems with persistence, I think there are components of the pom or the persistence that are not correct and are correct, I use the line in a jsp: <% ControlUsu...
asked by 24.09.2018 / 21:49
0
answers

Help with persistence, how to make several inserts in a single table?

I have the following model and I have a form with 4 combos that are filled with the same catalog CatalogoPerdida and a button guardar , when clicking on this button I must insert in the table PerdidaTiempo , but I mus...
asked by 20.09.2018 / 07:06
2
answers

error in persistence.xml, problems with hibernate. persistence

In the last few days I have been trying to make a web application for JSP, java and mysql connector 8. I have given an error when I try to execute it, I guess it is the order in the persistence but I have nothing in particular my mistake is...
asked by 19.09.2018 / 18:20
0
answers

The HQL statement does not recognize the AS?

@Override public List<MaestroTablaDTO> buscarMaestroTabla(MaestroTablaDTO maestroTablaDTO) { LOG.info("Inicio -- MaestroTablaDAOImpl -- buscarMaestroTabla"); List<MaestroTablaDTO> retornoListaMaestroTablaDTO = null;...
asked by 17.09.2018 / 21:23
1
answer

Convert data type from an entity to a Type. Eclipse Oxygen

I have a JPA entity from table, which handles BigDecimal variables (Pdvhdr), and I need to convert them to PdvhdrType, to make a query. The problem is that for example, the variable Change Type, I have to convert it to a String (as show...
asked by 10.08.2018 / 23:52
0
answers

Obtain an entity, assign it and save it again

I have a system where I have users and each one can have several roles. @Entity @Table( uniqueConstraints= @UniqueConstraint(columnNames={"username"}) ) public class CustomUser implements UserDetails { private stati...
asked by 20.07.2018 / 05:15
0
answers

JPA problems persisting a cascading list a subclass

I have the following invoice and detail invoice classes where invoice @Entity @Table(name = "factura") public class Factura implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy =...
asked by 13.07.2018 / 18:15
0
answers

Error in Java EE login

I'm trying to login to Java EE with a MySQL database. I am capturing the parameters from the form and sending them to a servlet as shown in the following code. index.jsp : <form action="./Login" method="post"> <div...
asked by 07.07.2018 / 03:46
0
answers

StackOverflowError when listing resources that contain a list of details

I have the Team and player classes with the following notations Team @OneToMany(fetch = FetchType.EAGER, mappedBy= "equipo", cascade= CascadeType.ALL) List<Jugador> jugadores = new ArrayList<>(); Player @ManyToOne @JoinC...
asked by 02.07.2018 / 01:21