Questions tagged as 'jpa'

1
answer

Java, Hibernate, JPA, ORM @GeneratedValue

Good morning, I would like to know what these two notes on programming are for. ? Is it better than a self-rated id of type int? @GeneratedValue(generator ="system-uuid") @GenericGenerator(name="system-uuid",strategy="uuid")     
asked by 12.05.2017 / 19:21
2
answers

(Incomparable Types: String and Order) Compare an entry in JTextField with the database in JPA

I try to make a way that the value entered by the user can be compared with the data of a database column or a JTable (not what is better for that purpose), for example: when the input of the control number to be: 123456 and in the coluna numCon...
asked by 10.04.2017 / 18:18
1
answer

How to Use Variables in JSF

My question is how to declare a variable to be able to do a total sub, and then perform a counter in JSF As you investigate, this could be done: <ui:param name="sub" value="#{item.canProductos * item.ideProducto.preProducto}" />...
asked by 17.04.2017 / 01:56
0
answers

pass query from MYSQL to JPQL?

Good afternoon, my query is the following I have the following query in MYSQL SELECT 'producto'.'NOMBRE' NOMBRE_PRODUCTO, 'ordentrabajo_producto'.'CANTIDAD' CANTIDAD, 'cliente'.'NOMBRE' NOMBRE_CLIENTE FROM 'ordentrabajo_producto' INNER JOIN...
asked by 04.10.2017 / 23:23
0
answers

Eclipselink and Sqlbase

I'm trying to connect to a database in Sqlbase through JPA with eclipselink. and I get the following error. GRAVE: Local Exception Stack: Exception [EclipseLink-4019] (Eclipse Persistence Services - 2.6.3.qualifier): org.eclipse.persistenc...
asked by 10.05.2017 / 17:56
0
answers

error in update in jpql

I'm trying to pass this query to update I do a subtraction with 2 different tables but the update gives me an error because I do not recognize the other table here I put the query to see if you can give me an idea how you should build the update...
asked by 07.03.2017 / 13:42
1
answer

Error doing a subtraction on DAO JAVA jpa

I have a DAO (Data Access Object) to create a history. What I'm looking for is to create a history, subtract it and put that value in a variable. However, I get nullpointerexception. Is there a problem with my code? public boolean crearH...
asked by 23.02.2017 / 14:50
1
answer

Problems searching for a data by ID in jpa

Good afternoon everyone, I am working on a practice project to increase my skills in JAVA EE, the fact is that I am doing a billing system, using JSF, JPA and PrimeFaces, I have a billing page and within this I have a page that takes the client...
asked by 17.02.2017 / 22:07
1
answer

The module has not been deployed

Good afternoon, I've been studying the topic of persistence unit and running my application JEE does not execute it and sends me the following error:    GlassFish Server, deploy, null, false   C: \ Users \ PAVILION \ Documents \ NetBeansProje...
asked by 06.02.2017 / 20:18
0
answers

Share entityManager between projects

I have a project in which I am using spring and persistence. I am managing @Transactional , but there is an external project which is going to be used for common operations in the database and I am sending the entityManager with whi...
asked by 25.11.2016 / 19:54