Questions tagged as 'jdbc'

0
answers

Problem with isValid ()

I am using the Tomcat Connection Pool to access my database so that I get the connections with the following code: public DBQueryResult query(String sentencia) throws Exception { PreparedStatement stmt = null; ResultSet rs = null;...
asked by 17.12.2017 / 17:02
2
answers

no How to get the last value inserted in the BD Oraclexe?

I am working in JEE, with WebLogic and OracleXE as a database engine, I am using a DataSource (NO JPA), in this database you have to create sequences to generate autoincremental values, I already did it and it works well when I execute it becaus...
asked by 31.10.2017 / 14:31
1
answer

Insert data from SQL server to struts2

Hello good night everyone, I explain my problem I'm making an insert to my table: but this is what is stored in the bd: The result I'm looking for is a lot of this: I provide my entity class: public class CoordenadasP { Str...
asked by 26.10.2017 / 04:01
1
answer

I have a question with servlets

Hello, this is my code that I have but I do not know how this would happen, I have a servlet truth I have no idea and I am suffering if someone can help me I will thank you, by the way I already have what is the connection and that I only...
asked by 16.08.2017 / 17:54
0
answers

problems with my code serveletes in the parameters

hi how I have problems with my servlet code because here where it says account is a parameter of my table and in fact before putting what is in the goGET I had put something like that //InsertarPublication ObtenerIdRedS= new InsertarPublicati...
asked by 16.08.2017 / 22:02
1
answer

Change the format of the String that returns the LocalDate type

I have a project in which I connect to MySQL and work with data type Date (in MySQL ) and LocalDate (in Java ) My problem is as follows, the method TryParseDate() parsea from String to LocalDate and retu...
asked by 10.05.2017 / 13:25
1
answer

Java jdbc general error

Hi, I'm creating a method to add an employee to the database, specifically to the table used, where one of its fields is the branch to which it belongs. In the event that the branch does not exist, I must insert it in the branch table. The pr...
asked by 25.03.2017 / 14:16
0
answers

Hibernate error: Unknown column 'pass' in 'field list'

Unknown column error 'pass' in 'field list' Student Class: package Servicios; public class Usuario implements Serializable{ private String mail; private String pass; private String nick; public Usuario(String mail,String pass){...
asked by 30.01.2017 / 23:48
1
answer

How to recover part of compound data with JDBC?

I have a small application that connects with postgresql , it stores 2 objects, Equipment that has three values: store type String , range type String and finally price type int . To store them, I occupy a type co...
asked by 28.10.2016 / 13:29
2
answers

Can a remote EJB use Classes (which are not EJBs) to be used by a remote client?

Situation: I have an EJB Project. It has a Class model that contains the business logic and database connection (the classes use JDBC). Within the same project, these classes are used by remote EJBs. Why? Because these EJBs will be used by a...
asked by 09.07.2016 / 02:26