Skip to content
Advertisement

Tag: java

Query Java doesn’t execute

I’m trying to execute a query on eclipse at my Java program, but it always exit with a exception and don’t execute the query, I read a lot of posts here but no one of them could help me with this. …

How to get Ignite Cache SQL Query to Return Value Object

I have a Postgres database configured as my persistence layer and would like to execute SQL queries against the Postgres tables cached in Ignite. Ideally, I’d like to execute a query on these caches and be returned the Value objects represented by these tables. SqlQuery gives me the functionality that I am looking for but is deprecated. SqlFieldsQuery would work,

Result of ‘File.createNewFile()’ is ignored

I’m not sure why this is but in my IDE, for file.createNewFile(); I’m getting Result of ‘File.createNewFile()’ is ignored for it which I’ve no idea what I should be doing Answer Static Code Inspection in your IDE for createNewFile might be complaining this because createNewFile returns a boolean value. This is in place so that you have a way to

Boolean value not being changed in database

Hey folks I’m having a problem with my code. For some reason when I try to change the value to false, it doesn’t reflect in my SQL Database. I debugged and it does get set via Java, but it doesn’t transfer over. I’m working on a notification service class and it sets the values on there to true no problem,

SQL code does not work when converted to JPQL code (ORA-00904 error code)

Thank you very much for looking at this post :). I have the following problem: I have a piece of SQL code that runs perfectly on the Oracle database. The problem comes when I try to run as JPQL code. I get the following error in the Eclipse IDE: Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00904: “THIRDTABLE”.”NAME”: invalid identifier. The SQL that works

Hibernate Table or view does not exist Oracle

I Have a problem executing an hibernate query on Oracle: my persistence.xml: my entity class com.entity.User: my java class: but when i execute my code, i obtain: Can you help me to find the error? NOTE: if a use a PreparedStatement with the same connections and query i don’t have any issue, so it is not a problem of permissions

Advertisement