Questions tagged as 'jpa'

0
answers

How to disable "update" in the "save" method of JpaRepository

I'm trying to insert a new user into my user table and I want to have control if we insert an existing user that does not update it. Currently it seems that the save method or saveFlush derivatives try to insert and if they already exist they...
asked by 17.12.2018 / 16:49
0
answers

webservice consumption works correctly in Tomcat but fails in WebLogic 12c

I have managed to consume a service using jax-ws , when I deployed to tomcat everything worked correctly, but when I deployed in weblogic everything works fine until I try to consume the service and throws the following error:    cou...
asked by 03.12.2018 / 16:50
0
answers

fill a datatable in primefaces with the result of a native jpa query?

My question is the following I have a query in my database manager which gives me this result. and a java method that does exactly the same thing but shows me the data in the following way. If I debug the list it is full and shows me...
asked by 28.11.2018 / 15:12
1
answer

API restful @mantytoone JPA, Spring boot - 404 not found

The api rest of these two entities I'm testing in a postman that gives me 404, eclipse compiles well the project, so I guess it is something wrong raised in the logic of my service or controller, I do not know which of the I am bad or if in both...
asked by 18.11.2018 / 10:55
0
answers

org.springframework.beans.factory.UnsatisfiedDependencyException

My question is this error occurs when I run "run as" java application. I can not find the solution to this exception. pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http...
asked by 11.11.2018 / 04:21
0
answers

How can I make JPA not generate a CLASE_PK?

Having a Question table, and having another table called answers. My problem is that when using JPA to be able to do the mapping of the tables, I create the class question and the class answers, apart from that I create an additional class th...
asked by 25.10.2018 / 04:27
1
answer

Because the rest (json) output does not show the object list

I'm doing a little program to practice spring boot I have these two entities package com.sistema.escuela.models; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List;...
asked by 26.10.2018 / 02:06
0
answers

org.springframework.beans.factory.BeanCreationException ERROR

I try to run my application in NetBeans and I get the following error. My mistake: Error creating bean with name 'BDEncuesta' defined in file [D:\adenbpo-reportes-encuestas-ms\target\classes\com\adenbpo\BDEncuesta.class]: Post-processing...
asked by 24.10.2018 / 04:19
0
answers

How to make entity mapping from the JPA database recognize the data type of the Database with

I am using Netbeans 8.2 project web classes Entity from a Database, mapping with JPA a database SQL server2012 from Microsoft. in the beginning I map with data types like Date, Image ... and others. Luxury, like this:  But after doing some...
asked by 02.10.2018 / 23:06
1
answer

Problem when wanting to update JPA

I'm using Java with JPA and I have a festival entity and another festival edition. A festival can have many editions. The question that when I release an edition, after doing em.persist, I have to do res.getFestival().getFestivalEdicions()....
asked by 28.09.2018 / 17:04