Home > Back-end >  JDBC, update an error, but the database didn't change
JDBC, update an error, but the database didn't change

Time:05-07

In the test class, can change, but I don't have an error with dao beanutils package after the call, but I don't have change, database

CodePudding user response:

Well, you put the code to just know, or don't see

CodePudding user response:

That you submit the

CodePudding user response:

Try try to refresh the database

CodePudding user response:

CodePudding user response:

See if there is any transaction,

CodePudding user response:

Didn't see there are uncommitted transactions

CodePudding user response:

Tracking down stuuserdao. Updatepwd (stuuser); The logic behind, to see whether there is a database for the update operation.

Share an ORM framework -- Bee.
Bee framework, a 10 minutes ORM framework of society. With the simplicity of operation entity object directly, also can easily write their own SQL execution.

https://blog.csdn.net/abckingaa/article/details/81176524

Bee low development cost, development of high efficiency and don't have to write more code,
It did not have to write each dao is a code, each service can call the bee as dao, let we don't need to write the dao code.
Save time and effort, the development efficiency is high, the encoding complexity to O (1).
A development cost and the speed of development is as good as the PHP Java ORM framework,

CodePudding user response:

My test class, can change the database, should be the problem, but I should take properties are given, also print out the error, the database is not change

CodePudding user response:

Debugger to debug, whether to execute the SQL statement, if carried out, whether the transaction is committed

CodePudding user response:

Don't see how you handle affairs, the code is not complete

CodePudding user response:

Before the building Lord how to solve of, I met the same problem

CodePudding user response:

Solve the code logic is itself didn't see clear with JDBC do not have what relation