Re: Quick EOModel Column Locking ?

2016-03-22 Thread Philippe Rabier
My intention was not to replace the Java code by SQL. You could just update your column with: https://jenkins.wocommunity.org/job/WonderIntegration/javadoc/er/extensions/eof/ERXEOAccessUtilities.html#updateRowsDescribedByQualifier(com.webobjects.eocontrol.EOEditingContext, java.lang.String, com.w

Re: ERXDisplayGroup.filteredObjects cached?

2016-03-22 Thread Samuel Pelletier
OC, Why not using the displayedObjects ? If you do not want batch, set the batch size to 0. Samuel > Le 22 mars 2016 à 15:21, OC a écrit : > > Hello there, > > searching for a bottleneck in my code, I have just bumped into that > ERXDisplayGroup.filteredObjects filters again and again and

ERXDisplayGroup.filteredObjects cached?

2016-03-22 Thread OC
Hello there, searching for a bottleneck in my code, I have just bumped into that ERXDisplayGroup.filteredObjects filters again and again and again each time it is called, even though nothing changed in the display group. Is that the intended behaviour? I would rather suppose it would cache and

Re: Maven not copying java resources into jar file

2016-03-22 Thread Hugi Thordarson
This worked perfectly, thanks Henrique! I wonder if WebObjects resources should perhaps live in a different folder than src/main/resources? That folder is a standard part of the maven project structure and this made for some really unexpeted behaviour. Cheers, - hugi > On 22. mar. 2016, at 1

Re: Maven not copying java resources into jar file

2016-03-22 Thread Henrique Prange
Hi Hugi, AFAIR, the wolifecycle-maven-plugin copies all files from src/main/resources into the Resources folder. However, you can use the maven-resources-plugin to copy the required files into the Maven output directory. maven-resources-plugin 2.6

Re: UUID data type

2016-03-22 Thread Ramsey Gurley
The readability pro/con you mention is actually reversed IMO. The gid is a database artifact and should be treated as such. Attaching any meaning to it is only asking for trouble. The only thing one should ever need to do with it in a query is join on it. Opinions out of the way, I would test i

Re: UUID data type

2016-03-22 Thread Samuel Pelletier
Johann, EOF only support NSData, String, number and Date as primary key. Also, databases usually does not have a native uuid type because it is in fact only a 16 bytes data value. Samuel > Le 22 mars 2016 à 10:13, Johann Werner a écrit : > > Hi Samuel, > > what about using the UUID class [1

Re: UUID data type

2016-03-22 Thread Johann Werner
Hi Samuel, what about using the UUID class [1]? jw [1] https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html > Am 22.03.2016 um 15:03 schrieb Samuel Pelletier : > > Hi, > > I'm working on adding uuid support as primary key with a prototype and ERRest > support. Actually, my impleme

UUID data type

2016-03-22 Thread Samuel Pelletier
Hi, I'm working on adding uuid support as primary key with a prototype and ERRest support. Actually, my implementation uses a 16 bytes NSData as the adaptor value type. Before going too far in this, I would like to validate my choices... I see 2 options: 1- A 16 bytes NSData Pro: It s

Re: Maven not copying java resources into jar file

2016-03-22 Thread Hugi Thordarson
Hi Lachlan, Here’s what my pom looks like, pretty vanilla: https://gist.github.com/anonymous/00e2cee94b185cd846af I’m just running mvn package for the build, should I be running different goals? Thanks for all your help :) - hugi > On 21. mar. 2016, at 22:36, Lachlan Deck wrote: > > A coup