Netezza jpa update not called - jpa

Working with netezza through jpa. Trying to update row in a simple table, but nothing happens in database. Updating using merge command.
Select works fine. Any ideas?

Related

Phinx changing migration doesnt create table again

I had a migration that created a table with 2 columns. Ran the migration and it worked. But I realised I would like one of the columns to be a different data type. I dropped the table in my db, changed the migration and ran it again and the table isn't created ? I tried using change() and create()
you need to create a new migration to change columns, don't do that in the old migration, because when you run a migration a new row will be inserted in phinxlog table, and if you try migrate again , phinx will check on phinxlog table what migration has been executed, so deleting table is not enough, you need to delete the inserted row in phinxlog. but it will be good if you create a new migration.

Ebean doesn't update my postgreSQL database

I downloaded play-authenticate with its "play-authenticate-usage" example and changed from the h2 database implementation to the postgreSQL database.
When I pick a specific User out of the table called "users", I can edit the values but after executing the method:
EbeanServer server = Ebean.getDefaultServer();
server.update(editedUser);
the changed values are not written into the postgreSQL database.
I can Insert new Users and I can delete them, just updating doesn't work with the Ebean ORM.
(With the h2 database everything worked well, but I have to integrate the postgreSQL database.)

NO SQL,ORIENTDB

I have already inserted record in OrientDB using insert query. But I forgot to save it. Now I wanted that query in OrientDB.Is there any ways to get that query back?
I am using OrientDB. I wrote the insert statement to insert the data in the class(table). Now I want all the insert statement querys back in OrientDB itself.
I want to reinsert the data using same query.
The query will be in the following format.
Insert into TABLE name()values();
I wrote some 100 queries using insert statement. But I lost all. Is it possible take the back up of all the queries I wrote so far in OrientDB.
If you have logged yor queries in OrientDB log, you can try to get by there. When you run a query by studio, you have a history run queries. If you have deleted the history or clean the log, you can't retrieve them

PostgreSQL: How to delete dynamically created table using SQL

I am developing a windows application and using Postgres as backend database. At some point in my application i am dynamically creating table e.g Table1, then Table2 and so on. In this way i have many dynamic table in my database. Now i provide a button "Clean Database", so i need to remove all those dynamic tables using SQL query. Should some one guide me how to write SQL Query that automatically delete all such tables?
You should just be able to say
DROP TABLE {tablename}
for each dynamically created table. Try that and see if it works.

Not able to query after Alter table in DB2

We have a table someone created in DB2. I have no idea how they created it. But when I edit the table, It edits just fine. But after edit I can not query the table at all THE COLUMN CANNOT BE ADDED TO THE TABLE BECAUSE THE TABLE HAS AN EDIT PROCEDURE.
I looked ibm site and found this how to edit table using procedure
But I have no idea how to do this.
Is there anything that I can do to fix this with out following the procedure mentioned in second link?
I restarted server, but still no help. First I'm not able to figure out why I get the error in first place.
I'm using DB Visualizer and DB2 on linux.
This is sometimes default behavior of DB2. We need to run reorgchk command to fix these errors. More info below..
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.admin.doc/doc/r0000888.htm
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.admin.doc/doc/c0023297.htm