Re: Cascade delete when no relationship: how?

2014-03-21 Thread Jean Pierre Malrieu
I did implement your proposal and that seems to work fine. Thanks Le 19 mars 2014 à 20:45, Paul Yu p...@mac.com a écrit : Jean Pierre Could you write something in the willDelete() method on B? Fetch for the A's of B and manually delete them? Paul just a programmer On Mar 19, 2014,

Re: Application not start in womonitor

2014-03-21 Thread Paul Hoadley
Hi Dave, On 21/03/2014, at 12:51 PM, David Avendasora webobje...@avendasora.com wrote: I am not an expert in deployment issues, but I see “… Application 'logistica-1' on localhost:2002 …”. The “localhost” makes me wonder if you setup the application in JavaMonitor using “localhost” as the

Re: Application not start in womonitor

2014-03-21 Thread David Avendasora
On Mar 21, 2014, at 2:56 AM, Paul Hoadley pa...@logicsquad.net wrote: I know that's the conventional wisdom, and I know you started with a disclaimer, but I think that can be a red herring in the general case (though by all means perhaps not in this specific case). We've got an existence

Re: Application not start in womonitor

2014-03-21 Thread Pascal Robert
Le 2014-03-21 à 02:58, Paul Hoadley pa...@logicsquad.net a écrit : Hi Dave, On 21/03/2014, at 12:51 PM, David Avendasora webobje...@avendasora.com wrote: I am not an expert in deployment issues, but I see “… Application 'logistica-1' on localhost:2002 …”. The “localhost” makes me

updating using Migrations with allowNull

2014-03-21 Thread Theodore Petrosky
I have a running D2W app and I need to add some booleans to my User.security Entity. Normally I accomplish this by: adding the boolean to my postgresql db with migrations: ERXMigrationTable securityTable = database.existingTableNamed(security);

Re: updating using Migrations with allowNull

2014-03-21 Thread David Avendasora
Hi Ted, You could create the column with allows null = false and a default value of false using: ERXMigrationTable securityTable = database.existingTableNamed(security); securityTable.newIntBooleanColumn(canseeprojects, false, false); Which will set the value for all existing

Notification or handler after an EO got snapshot update

2014-03-21 Thread Samuel Pelletier
Hi, I have a class where I added an ivar to keep a cache of some values extracted from toMany relationships. I want to clear this cache if the toMany is updated from another editingContext but I do not find a proper way to catch this event. For simple attributes, creating a public

Re: Cascade delete when no relationship: how?

2014-03-21 Thread Ramsey Gurley
Check your delete rule on the reverse relation. I forget which one, but I think one of them is not compatible with cascade. Jean Pierre Malrieu jp.malr...@free.fr wrote: Unfortunately that does not work... Le 21 mars 2014 à 04:57, Jean Pierre Malrieu jp.malr...@free.fr a écrit : I love it

[Solved] RE: Application not start in womonitor

2014-03-21 Thread Oscar González
Hi all,Thanks to all of you guys, you are great.It was the hosts file.The localhost entry was always there, but an entry for host name was bad.192.168.2.1 INPROTSA-VPS02LFirst I remove it, but didn't work.Then I put the correct entry192.168.8.4 INPROTSA-VPS02LAnd it works. Oscar

Re: Application not start in womonitor

2014-03-21 Thread Chuck Hill
Hi Oscar, It looks like the app is waiting for some TCP connections. The second one below is what is preventing your app from starting. Something to do with ERChangeNotifications. Chuck On 2014-03-21, 6:33 AM, Oscar González wrote: Hi Chuck, This is what sudo jstack shows. Attaching to

Re: Notification or handler after an EO got snapshot update

2014-03-21 Thread Chuck Hill
turnIntoFault is the only method that I can think of that might work. Chuck On 2014-03-21, 6:18 AM, Samuel Pelletier wrote: Hi, I have a class where I added an ivar to keep a cache of some values extracted from toMany relationships. I want to clear this cache if the toMany is updated from

Re: Cascade delete when no relationship: how?

2014-03-21 Thread Kieran Kelleher
er.extensions.eof.ERXUnmodeledToManyRelationshipS, D might meet your needs here. In your B.mightDelete() (not willDelete()) you can call ERXUnmodeledToManyRelationship.deleteAllObjectsRelationships(). On Mar 19, 2014, at 3:30 PM, Jean Pierre Malrieu jp.malr...@free.fr wrote: Hi, Suppose I

ERXGenericRecord class not found error

2014-03-21 Thread Ângelo Andrade Cirino
Hi all, I created a new Wonder D2W project from template to do some experimentation and learn more of Wonder. I have an entity that really doesn't need to be a custom class, so I set the Class Name property in Entity Modeler to er.extensions.ERXGenericRecord, but no matter how I order the

Re: ERXGenericRecord class not found error

2014-03-21 Thread Ramsey Gurley
er.extensions.eof.ERXGenericRecord? On Mar 21, 2014, at 10:40 AM, Ângelo Andrade Cirino aacir...@gmail.com wrote: Hi all, I created a new Wonder D2W project from template to do some experimentation and learn more of Wonder. I have an entity that really doesn't need to be a custom class,

Re: ERXGenericRecord class not found error

2014-03-21 Thread Theodore Petrosky
the class name is where this lives in your project. you are trying to add it to er.extensions. ERX so something like com.angelo.model.NAMEOFYOURENTITY On Mar 21, 2014, at 1:40 PM, Ângelo Andrade Cirino aacir...@gmail.com wrote: Hi all, I created a new Wonder D2W project from template to

Re: ERXGenericRecord class not found error

2014-03-21 Thread Ângelo Andrade Cirino
Ramsey again right to the point. I copied and pasted the fully qualified name from the Javadoc page: http://wonder.sourceforge.net/javadoc/er/extensions/ERXGenericRecord.html and then missed the eof part. Again, thank you very much. Angelo Em sexta-feira, 21 de março de 2014, Ramsey Gurley

Re: ERXGenericRecord class not found error

2014-03-21 Thread David Avendasora
Angelo, That link points to a VERY old (2.0) version of WOnder. Packages have changed, tons has been added. Here’s where you can find the up-to-date Javadoc for Wonder: http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/javadoc/ Dave On Mar 21, 2014, at 2:05 PM, Ângelo Andrade

Re: Notification or handler after an EO got snapshot update

2014-03-21 Thread Ray Kiddy
On Fri, 21 Mar 2014 09:18:46 -0400 Samuel Pelletier sam...@samkar.com wrote: Hi, I have a class where I added an ivar to keep a cache of some values extracted from toMany relationships. I want to clear this cache if the toMany is updated from another editingContext but I do not find a

Wrong object

2014-03-21 Thread Jeffrey Schmitz
Am seeing some of these warnings and wondering what they might indicate... Mar 21 20:19:12 netBrackets[2002] WARN er.extensions.components._private.ERXWORepetition - Wrong object: 243620065 vs 34923469 (array = (com.netbracketsfw.model.Entry pk:1002578, com.netbracketsfw.model.Entry