Re: Can I force a reload of a database's JDBC info?

2016-03-03 Thread Paul Hoadley
On 4 Mar 2016, at 4:59 pm, Chuck Hill wrote: > Ah, right, protected, I was going to mention that and got distracted. :-) > You will need to find a way to get it it to use a subclass of JDBCAdaptor. > Wonder does this with ERXJDBCAdaptor. Here’s another potential hack. I know what the keypa

Re: Can I force a reload of a database's JDBC info?

2016-03-03 Thread Chuck Hill
Ah, right, protected, I was going to mention that and got distracted. :-) You will need to find a way to get it it to use a subclass of JDBCAdaptor. Wonder does this with ERXJDBCAdaptor. Chuck From: Paul Hoadley mailto:pa...@logicsquad.net>> Date: Thursday, March 3, 2016 at 10:25 PM To: Ch

Re: Can I force a reload of a database's JDBC info?

2016-03-03 Thread Paul Hoadley
Hi Chuck, On 4 Mar 2016, at 2:45 pm, Chuck Hill wrote: > Then call JDBCAdaptor.typeInfoModel(EOModel) get get things setup again. I’m in a migration upgrade() method, and I’ve got to this point. I can get database.adapter() (where database is the ERXMigrationDatabase passed to upgrade()), but

Re: Can I force a reload of a database's JDBC info?

2016-03-03 Thread Chuck Hill
It is clearly hacking. My preference would be to solve it some other way. That said, this all happens very early during migrations so if it tests out it should be OK. Chuck From: Paul Hoadley mailto:pa...@logicsquad.net>> Date: Thursday, March 3, 2016 at 10:02 PM To: Chuck Hill mailto:ch...@

Re: Can I force a reload of a database's JDBC info?

2016-03-03 Thread Paul Hoadley
On 4 Mar 2016, at 2:45 pm, Chuck Hill wrote: > You can remove the jdbc2Info key from the connection dictionary(ies) and then > call setConnectionDictionary on the adaptor for each model (or just one if > they all connect to the same database). Then call > JDBCAdaptor.typeInfoModel(EOModel) ge

Re: a trick to model a complex derived relationship?

2016-03-03 Thread Chuck Hill
Does the model you are changing have any relationships to other models in the model group? If not, it should be safe. I can’t think of how it would affect other models. Ideally, changing the model is only done before app startup before any requests are processed. You could run a special inst

Re: a trick to model a complex derived relationship?

2016-03-03 Thread Chuck Hill
Hi, On 2016-03-02, 4:30 PM, "OC" wrote: >Chuck, > >On 2. 3. 2016, at 21:18, OC wrote: > >>> Defining additional entities with the appropriate restricting qualifiers >>> for these conditions might possibly work. Then you could define the >>> flattened relationship in terms of these restrict

Re: Can I force a reload of a database's JDBC info?

2016-03-03 Thread Chuck Hill
You can remove the jdbc2Info key from the connection dictionary(ies) and then call setConnectionDictionary on the adaptor for each model (or just one if they all connect to the same database). Then call JDBCAdaptor.typeInfoModel(EOModel) get get things setup again. That looks like it should d

Can I force a reload of a database's JDBC info?

2016-03-03 Thread Paul Hoadley
Hello, As discussed in a recent thread (“Use case for a "case insensitive equals" qualifier”), I want to use PostgreSQL’s CITEXT extension type on a column (User.username). I’d like to make the change using migrations. Because CITEXT is an extension type, you need to create it in any database

Page Cache Headers Safari 9

2016-03-03 Thread Gino Pacitti
Hi Group I was just doing some tests using Safari 9 with setPageRefreshOnBacktrackEnabled(true); and headers are being set yet Safari does not do a round trip back to server on back button for at least 3 clicks? Mozilla and Chrome do on first click yet Safari not. Is there some

Re: manually refreshing an AjaxTree

2016-03-03 Thread Jürgen Tabert
Disable caching. Jürgen > On 02.03.2016, at 16:53, Benjamin Steiner wrote: > > Hi list > > I’m working with an AjaxTree where i want to be able to add objects to the > structure and immediately display them. At the moment, the tree only updates > when i open or close a branch, now my questio