Showing posts with the label java

[FIXED] Using enum vs Boolean?

Issue This may initially seem generic, but in fact, I am actually making the decision on which I ne…

[FIXED] org.postgresql.util.PSQLException: ERROR: column is of type date but expression is of type integer: cannot write date into postgres using java

Issue I'm trying to insert a record inside my table but I cannot insert any values into the Dat…

[FIXED] Pehtaho DI v9.3 can't connect to MS SQL Server DB 19

Issue I have a problem with the connection to SQL Server via Pentaho DI. I downloaded the latest ve…

[FIXED] Hibernate Criteria.setMaxResults() fails on Oracle 11g

Issue When using hibernate to retrieve data from Oracle 11g DB using either org.hibernate.dialect.O…

[FIXED] Does the preparedStatement avoid SQL injection?

Issue I have read and tried to inject vulnerable sql queries to my application. It is not safe enou…

[FIXED] Is it safe to pass a query with no parameters to PreparedStatement?

Issue I am quite new to Java, so for sure this is gonna be a silly question. I often read that one…

[FIXED] Am I vulnerable to SQL Injection?

Issue I have this class that extends a class that implements CustomTaskChange. Since some of the cl…

[FIXED] Java - escape string to prevent SQL injection

Issue I'm trying to put some anti sql injection in place in java and am finding it very difficu…

[FIXED] SQLGrammarException:error executing work ORA-01722: invalid number in SQL | Is it SQL Injection possible?

Issue I am a web Application tester, While testing one of the requests i have found some SQL error …

[FIXED] Can you explain the difference between jdbcTemplate methods preparedStatementCallBack and preparedStatementSetter to avoid sql Injection?

Issue I want to avoid sql injection in my application.There are two jdbcTemplate method like publi…

[FIXED] Using JOOQ, what more do I need to prevent sql injections

Issue How is this a duplicate as i am specifically asking about JOOQ here? I am using JOOQ in my …

[FIXED] How to prevent SQL Injection with JPA and Hibernate?

Issue I am developing an application using hibernate. When I try to create a Login page, The proble…

[FIXED] Equivalent function in Oracle SQL for the Java Operator '%'

Issue What is the equivalent in Oracle SQL to have exactly same behavior of the Java % (Modulo) Ope…

[FIXED] Inserting new row to table using repository, no pk on table

Issue I'm working with Oracle and table have no pk. On entity I'm using ROWID as Id @Id @C…

[FIXED] Getting UTF-8 character issue in Oracle and Java

Issue Have one table in Oracle which contains column type is NVARCHAR2 . In this column I am trying…

[FIXED] Using setDate in PreparedStatement

Issue In order to make our code more standard, we were asked to change all the places where we hard…

[FIXED] Getting id after insert within a transaction (Oracle)

Issue Let's say I have three tables: team, player, team_player. Table team_player is a bridge t…

[FIXED] Query in Room SQLite (Insensitive casing) ignoring accents

Issue In a part of my Android application you can search for people by name. But I need that even i…

[FIXED] SQL generated by Hibernate invalid for MS SQL

Issue Hibernate (HQL) generated the following SQL for which I inserted the parameters: select su…

[FIXED] Keeping a large sorted User cache with an intensive comparator

Issue I have a large data set (100,000+ users) that needs to be cached and sorted for use at all ti…