I have web project in which I am using OpenJAP for database connectivity. I have configured the persistence.xml and I am able to connect to the database and retrieve the data. But in the console output I am seeing this entry
1953 OpenJPA TRACE [main] openjpa.jdbc.SQL - <t 31156635, conn 6888942> executing prepstmnt 9690924
UPDATE student
SET scourse = ?, sname = ?, sroll = ?
WHERE id = ?
[params=?, ?, ?, ?]
In my whole project till now I have not added any prepared statement or any update statement. I want to know why is OpenJPA executing this statement and what would be performance implication when I am fetching big data in the range of millions?
I have added following code to my build.xml file
On adding this and setting the eclipse to use this build.xml file to create the WAR file. The objects are getting enhanced and I am not getting the “Executing the prepared statement” Trace in my log also it is not executing the extra “Update” statement.