Dian,
The windows service solution wouldn't be practical and also it's unfamiliar territory for me.
What do you mean by "Implement a change listener and clear the app" - I can see how I can use a change listener and shut down the app when needed - it's the restart part that gets me.
How do you make a java application shutdown and automatically restart itself?
The reason for this is I have an application I maintain - it's run from a network drive and sometimes the users leave an instance running for months at a time. When I release an update I would like each instance to...
I was planning to write a small update app, it will be started by the autorun feature on windows. It will connect with the database and modify the table required, then copy a new application jar to the system. This will have all the modified pojo's etc.
I'm quite new to hibernate - how would I...
I'm trying to write an update app which needs to modify a table in the embedded Derby Db, but I get
java.lang.IllegalArgumentException: node to traverse cannot be null!
The code concerned is:
Query q = this.entityManager1.createQuery("alter table jobrecords add column enginesize int not...
He's not really solving the problem - all his refresh method does is delete everything from the List and then put it all back, in a way not really different from unbinding the table and then rebinding it.
snuv - did you find a solution? I've been contemplating doing something similar - use the node based gui from a file chooser to display data that isn't file or folder based.
I have a Jtable thats bound to a DB table. Sometime the database can be updated and the model of the table changes but the displayed data doesn't.
At the moment I have to cause a manual refresh by unbinding the table then rebinding it, which seems to me to be a really ugly solution.
Is there...
I've got a small test program set up to try and resolve this problem but I'm at a loss now. I have a jTable that has two columns - each of type double.
The table uses a cell editor that selects all the contents on edit. (it also disables the editing on a mouse click to prevent masking of the...
MONTH is the datadase function that returns an int representing the month from a date field. http://db.apache.org/derby/docs/10.4/ref/ref-single.html#rrefmonthfunc
The db table in question is very simple, no FK's just a few varchar fields and a couple of Date fields.
I think the bug is in the...
Hi,
I've got an embedded Derby DB and I use entity beans with namedqueries.
One of which is:
@NamedQuery(name = "Vehicles.findbymotmonth", query = "SELECT v FROM Vehicles v WHERE MONTH(v.lastmotdate) = :monthnumber")
If I use the IDE to send this command to the database it works fine...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.