Questions tagged as 'jpa'

0
answers

Raise database [closed]

I have the classes in java each with their annotations made to persist, I have persistance.xml configured in that I have no problem, my problem is how do I connect it to the mysql database so that I can create the tables?     
asked by 22.09.2016 / 01:48
0
answers

Failed to get Remote Object (GlassFish, EJB)

I am working with a web project (maven), and adding by means of dependencies to my pom.xml file another maven project to use all its classes ... What I intend to do, is to show in my web project, a page that shows a list of clients, for...
asked by 09.08.2016 / 20:22
0
answers

OpenJPA one to one DO NOT SHARE THE primary key

We have the following two tables linked to a one-to-one relationship with a shared primary key: CREATE TABLE "PERSONAL"."INASISTENCIAS" ( "**ID_INASISTENCIA**" INTEGER NOT NULL, "FECHA_COMIENZO" DATE NOT NULL, "FECHA_FI...
asked by 28.07.2016 / 20:28
3
answers

Error mapping entities from the database

I am developing an application in Windows 7 with NetBeans 8.1 and a SQL Server 2012 database. I have mapped the entities directly from the database but at the moment of starting my application I get this error:    Severe: Exception while prep...
asked by 11.04.2016 / 17:56
0
answers

Does not update JAVA REST API data with Jersey

I have mounted a API in jersey , create a class that has the methods > REST and it is working, input data from the client POSTMAN where GET , POST , PUT , and DELETE work, send POST or PUT are executed correctly, but after havin...
asked by 19.04.2016 / 21:03
2
answers

NullPointerException when updating in JPA

I have the following code to update the values of an object that are displayed in a table: public class AgendaJPADAOImpl implements AgendaJPADAO, Serializable { EntityManagerFactory emf = Persistence.createEntityManagerFactory("AGENDAJPAPU");...
asked by 25.10.2016 / 13:56
1
answer

How can I map a VISTA or a STORED PROCEDURE from an sql server database with Hibernate in java se?

How can I map a VISTA or STORED PROCEDURE from a sql server database with Hibernate in Java SE?     
asked by 18.08.2018 / 23:57
1
answer

Help with JPQL to make a kind of filter with LIKE JAVA

I have a problem. I want to make a JPQL , and make a kind of filter that lists me the type of merchandise that have similarity with the name specified by the user. @Override public List<TblStock> findByName(String nombre) { Typ...
asked by 14.07.2018 / 00:47
1
answer

Foreach de java me sobre writes the objects

Friends, I have a foreach in java that runs through a list to fill another and send it to my jquery, but I realized that the for is overwriting the objects. Ex: listingMethod (id) [0]) = 'samsung' and listingMethod (id) [0]) = 'iPhone 6...
asked by 29.10.2017 / 02:30
2
answers

Differences between java.util.Date and java.sql.Date

I would like to know what is the difference between the objects java.util.Date and java.sql.Date , also if I am creating an application using Hibernate JPA which of these objects should I use to save my dates. I must say that m...
asked by 28.08.2017 / 22:43