Re: [Proposal] Drop Wonder's Ant Build

2022-06-28 Thread Don Lindsay via Webobjects-dev
I use maven almost exclusively for all my projects.  Wonder and otherwise.

> On Jun 16, 2022, at 17:42, Henrique Prange via Webobjects-dev 
>  wrote:
> 
> Hey guys,
> 
> I've been talking to other Wonder users/committers lately. Keeping the Ant 
> build configuration up to date in Wonder is becoming increasingly 
> counterproductive. Most of us have been using Maven for years. As a result, 
> our environments are not prepared to build the project with Ant, making it 
> hard to check if we broke something after every change. For this reason, I'd 
> like to propose the removal of the Ant build configuration from project 
> Wonder.
> 
> What do you think?
> 
> Cheers,
> 
> HP
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/pccdonl%40icloud.com
> 
> This email sent to pccd...@icloud.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: The secret WOCommunity Slack channel?

2020-11-02 Thread Don Lindsay via Webobjects-dev
I would also like to be added if possible

> On Nov 1, 2020, at 12:01, Jérémy DE ROYER via Webobjects-dev 
>  wrote:
> 
> Hi Marc,
> 
> You should have received a link on your mailbox.
> 
> Have a nice evening,
> 
> Jérémy
> 
> 
>> Le 1 nov. 2020 à 18:49, Marc Günther via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> a 
>> écrit :
>> 
>> Hi all,
>> 
>> Sorry to bother everyone, but I can find absolutely no information about 
>> this anywhere. I wouldn't even know whom to ask.
>> 
>> Apparently there is a WOCommunity Slack channel since quite a while now:
>> - https://wocommunity.slack.com
>> 
>> I would be very interested to join, but I cannot find a sign up link 
>> anywhere, or a contact person, or any mention of it on the wiki. Is there a 
>> particular reason that this channel is kept so secret? Only for the elite 
>> clique of WOnder contributers and not for the common WebObjects developer?
>> 
>> I was recently interested in Elm, and I could just join their Slack and say 
>> Hi, and ask questions. It felt very welcoming for new users.
>> 
>> Now, I know there won't be any new users for WO, but it would still be nice 
>> if there wouldn't be this air of mystery about the whole thing. I mean with 
>> the Wiki being out of date for like 5 years, WOInstaller broken, etc. I 
>> recently had to setup WebObjects for development and for deployment on some 
>> new machines (MacOS Catalina), and documented the entire process, so I 
>> thought, I could update the information on the wiki, but I don't have an 
>> account there either, and likewise, no idea on who to ask about it.
>> 
>> Greetings from Sweden,
>> Marc
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net
>>  
>> 
>> 
>> This email sent to jeremy.dero...@ingencys.net 
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> )
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/pccdonl%40icloud.com 
> 
> 
> This email sent to pccd...@icloud.com 
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Qualifying a DisplayGroup in WOO

2020-10-12 Thread Don Lindsay via Webobjects-dev
Thanks

> On Oct 12, 2020, at 10:45, Hugi Thordarson via Webobjects-dev 
>  wrote:
> 
> Hi Don,
> it's been ages since I've used DisplayGroups, but it does seem like you're 
> missing an invocation of qualifyDisplayGroup() (if you want to filter objects 
> already in the DG) or qualifyDataSource() (to perform an entirely new fetch) 
> on the DG to actually do anything with the qualifier you've set.
> 
> Cheers,
>  - hugi
> 
>> On 12 Oct 2020, at 15:36, Don Lindsay via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hello, I apologize if this is a duplicate, I recently re-subscribed because 
>> my old Mac.com <http://mac.com/> email address appears to intermittently 
>> reject messages;
>> 
>> I want to apply a qualifier to an ERXDisplayGroup that is defined in WOO.  I 
>> couldn’t figure out how to create a EOFetchSpecification with a qualifier in 
>> EOModeler that would take a value from the user’s session.  The qualifier 
>> takes it’s value from a variable in the user’s session using a method in the 
>> component class.
>> 
>> My ERXDisplayGroup is defined like this:
>> 
>> {
>>"WebObjects Release" = "WebObjects 5.0";
>>variables = {
>> databaseDetailsDisplayGroup = {
>> class = ERXDisplayGroup;
>> dataSource = {
>> class = EODatabaseDataSource;
>> editingContext = "session.defaultEditingContext";
>> fetchSpecification = {
>> class = EOFetchSpecification;
>> entityName = Databasedetails;
>> fetchLimit = 0;
>> isDeep = YES;
>> };
>> };
>> fetchesOnLoad = YES;
>> formatForLikeQualifier = "%@*";
>> numberOfObjectsPerBatch = 10;
>> selectsFirstObjectAfterFetch = YES;
>> sortOrdering = ({class = EOSortOrdering; key = name; 
>> selectorName = "compareAscending:"; });
>> };
>> };
>> }
>> 
>> In my component I have 
>> 
>> public NSArray getConnectorEntries() {
>> databaseDetailsDisplayGroup.setQualifier(tenantSpec().qualifier());
>> return databaseDetailsDisplayGroup.filteredObjects();
>> }
>> public EOFetchSpecification tenantSpec() {
>> return ((Session)session()).tenantFetchSpecification();
>> }
>> 
>> Session:
>> 
>> public EOFetchSpecification tenantFetchSpecification() {
>>EOFetchSpecification fetchSpecification = new EOFetchSpecification();
>>fetchSpecification.setQualifier(new 
>> EOKeyValueQualifier("tenant",EOQualifier.QualifierOperatorEqual,this.tenant));
>>return fetchSpecification;
>> }
>> 
>> 
>> And in my WOD I have
>> 
>> RowRepetition: WORepetition {
>>list = connectorEntries;
>>item = currentItem;
>> }
>> 
>> The data never gets filtered by the Qualifier, it returns all objects with 
>> no filtering.
>> 
>> What have I done wrong here, am I going at this the wrong way?
>> 
>> Thanks in Advance
>> 
>> Don
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is 
>> <https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is>
>> 
>> This email sent to h...@karlmenn.is
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/pccdonl%40icloud.com
> 
> This email sent to pccd...@icloud.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Qualifying a DisplayGroup in WOO

2020-10-12 Thread Don Lindsay via Webobjects-dev
Hello, I apologize if this is a duplicate, I recently re-subscribed because my 
old Mac.com email address appears to intermittently reject messages;

I want to apply a qualifier to an ERXDisplayGroup that is defined in WOO.  I 
couldn’t figure out how to create a EOFetchSpecification with a qualifier in 
EOModeler that would take a value from the user’s session.  The qualifier takes 
it’s value from a variable in the user’s session using a method in the 
component class.

My ERXDisplayGroup is defined like this:

{
   "WebObjects Release" = "WebObjects 5.0";
   variables = {
databaseDetailsDisplayGroup = {
class = ERXDisplayGroup;
dataSource = {
class = EODatabaseDataSource;
editingContext = "session.defaultEditingContext";
fetchSpecification = {
class = EOFetchSpecification;
entityName = Databasedetails;
fetchLimit = 0;
isDeep = YES;
};
};
fetchesOnLoad = YES;
formatForLikeQualifier = "%@*";
numberOfObjectsPerBatch = 10;
selectsFirstObjectAfterFetch = YES;
sortOrdering = ({class = EOSortOrdering; key = name; selectorName = 
"compareAscending:"; });
};
};
}

In my component I have 

public NSArray getConnectorEntries() {
databaseDetailsDisplayGroup.setQualifier(tenantSpec().qualifier());
return databaseDetailsDisplayGroup.filteredObjects();
}
public EOFetchSpecification tenantSpec() {
return ((Session)session()).tenantFetchSpecification();
}

Session:

public EOFetchSpecification tenantFetchSpecification() {
   EOFetchSpecification fetchSpecification = new EOFetchSpecification();
   fetchSpecification.setQualifier(new 
EOKeyValueQualifier("tenant",EOQualifier.QualifierOperatorEqual,this.tenant));
   return fetchSpecification;
}


And in my WOD I have

RowRepetition: WORepetition {
   list = connectorEntries;
   item = currentItem;
}

The data never gets filtered by the Qualifier, it returns all objects with no 
filtering.

What have I done wrong here, am I going at this the wrong way?

Thanks in Advance

Don


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


D2W Wonder with multiple EOModels

2020-10-12 Thread Don Lindsay via Webobjects-dev
Hello, I apologize if this is a duplicate my apple lists account appeared to be 
messed up so I resubscribed;

I have a D2W application with two EOModels that connect to two different 
databases.EOF works correctly to pull the data for both models, I turned on 
EOF debugging and I see records being returned when the entries are selected 
and queried.  For example:  ( I removed some of the columns text to make it 
easier to read)

Oct 11 21:04:52 mozaic[5001] DEBUG NSLog  -  === Begin Internal Transaction
Oct 11 21:04:52 mozaic[5001] DEBUG NSLog  -  evaluateExpression: 

Oct 11 21:04:52 mozaic[5001] DEBUG NSLog  - 412 row(s) processed


The task is LIST.

For any entity in the first EOModel the list template works fine and data is 
listed in the page.
For any entity in the second EOModel the list template loads but says there are 
no records.  But as you can see above, 412 records have been returned from the 
database for ITABYY and when it is selected and searched with no criteria 
nothing displays in the list page.   Every entity in the second EOModel will 
not display in the list template.

If I query the EOF directly I get all the records back that I would respect.

Have I missed a step when using multiple Models?

Thanks,

Don



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Qualifying a DisplayGroup in WOO

2020-09-24 Thread Don Lindsay via Webobjects-dev
Hello;

I want to apply a qualifier to an ERXDisplayGroup that is defined in WOO.  I 
couldn’t figure out how to create a EOFetchSpecification with a qualifier in 
EOModeler that would take a value from the user’s session.  The qualifier takes 
it’s value from a variable in the user’s session using a method in the 
component class.

My ERXDisplayGroup is defined like this:

{
   "WebObjects Release" = "WebObjects 5.0";
   variables = {
databaseDetailsDisplayGroup = {
class = ERXDisplayGroup;
dataSource = {
class = EODatabaseDataSource;
editingContext = "session.defaultEditingContext";
fetchSpecification = {
class = EOFetchSpecification;
entityName = Databasedetails;
fetchLimit = 0;
isDeep = YES;
};
};
fetchesOnLoad = YES;
formatForLikeQualifier = "%@*";
numberOfObjectsPerBatch = 10;
selectsFirstObjectAfterFetch = YES;
sortOrdering = ({class = EOSortOrdering; key = name; selectorName = 
"compareAscending:"; });
};
};
}

In my component I have 

public NSArray getConnectorEntries() {
databaseDetailsDisplayGroup.setQualifier(tenantSpec().qualifier());
return databaseDetailsDisplayGroup.filteredObjects();
}
public EOFetchSpecification tenantSpec() {
return ((Session)session()).tenantFetchSpecification();
}

Session:

public EOFetchSpecification tenantFetchSpecification() {
   EOFetchSpecification fetchSpecification = new EOFetchSpecification();
   fetchSpecification.setQualifier(new 
EOKeyValueQualifier("tenant",EOQualifier.QualifierOperatorEqual,this.tenant));
   return fetchSpecification;
}


And in my WOD I have

RowRepetition: WORepetition {
   list = connectorEntries;
   item = currentItem;
}

The data never gets filtered by the Qualifier, it returns all objects with no 
filtering.

What have I done wrong here, am I going at this the wrong way?

Thanks in Advance

Don

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Storing serialized object in MySql Database

2020-08-11 Thread Don Lindsay via Webobjects-dev
I fixed it, thanks for talking me through it.

I just covered it to NSData

> On Aug 11, 2020, at 09:30, Jesse Tayler  wrote:
> 
> Well, I’m sure there is validation for JSON since that has issues with format 
> and encodings, so I’d expect some of that sort of thing here.
> 
> I don’t really see the value or whatever expected type, so I’d find that 
> value that breaks it and test it —
> 
> One thing I wonder is about text encoding, are you certain you’ve got all 
> your types correct?
> 
> I mean, it is gaging on a value somewhere, it could be a small as an invalid 
> character or sequence.
> 
>> On Aug 11, 2020, at 8:26 AM, Don Lindsay  wrote:
>> 
>> The value entered for Serial is not a valid ?.
>> 
>> ERXVaidationException
>> 
>> I have setup no Validation, so it must be Wonder or WebObjects base 
>> validation that is throwing the error
>> 
>>> On Aug 10, 2020, at 18:20, Jesse Tayler  wrote:
>>> 
>>> Did you list your error?
>>> 
>>>> On Aug 10, 2020, at 6:08 PM, Don Lindsay via Webobjects-dev 
>>>>  wrote:
>>>> 
>>>> Hello;
>>>> 
>>>> I have an app that the ucxstomer has asked to store specific serialized 
>>>> objects into a MySQL database.  I have stored serialized objects in MySQL 
>>>> many times, at customer request.  I get an error  am trying to populate 
>>>> the field with incorrect data type.  The convertObject method is a 
>>>> standard format method for serializing a java object.  It is the same code 
>>>> we use for converting objects to byte arrays in another application that 
>>>> uses jdbc.  The object is able to be serialized fine, but can’t be put 
>>>> into the column and then saved to the database by EOF.
>>>> 
>>>> The Code:
>>>> getSelectedTile().takeStoredValueForKey(Session.convertObject(new
>>>>  TileStorage(this)),"serial");
>>>> 
>>>> Tile entity :
>>>> 
>>>> attributes = (
>>>>{columnName = description; name = description; prototypeName = 
>>>> longText; }, 
>>>>{
>>>>className = "java.lang.Number"; 
>>>>columnName = id; 
>>>>externalType = INT; 
>>>>name = id; 
>>>>precision = 10; 
>>>>valueType = l; 
>>>>}, 
>>>>{columnName = name; name = name; prototypeName = longText; }, 
>>>>{
>>>>allowsNull = Y; 
>>>>className = "com.webobjects.foundation.NSData";
>>>>columnName = serial; 
>>>>externalType = BLOB; 
>>>>name = serial; 
>>>>width = 65535; 
>>>>}, 
>>>>{
>>>>allowsNull = Y; 
>>>>className = "com.webobjects.foundation.NSData"; 
>>>>columnName = tilejson; 
>>>>externalType = BLOB; 
>>>>name = tilejson; 
>>>>width = 65535; 
>>>>}, 
>>>>{
>>>>allowsNull = Y; 
>>>>className = "com.webobjects.foundation.NSData"; 
>>>>columnName = visualization; 
>>>>externalType = BLOB; 
>>>>name = visualization; 
>>>>width = 65535; 
>>>>}
>>>> ); 
>>>> I have tried to set the classname of the serial field to the class being 
>>>> stored but that does not work either.I figure if all else fails I can 
>>>> do a RAW SQL and store the serialized object, but I would prefer that EOF 
>>>> handle all that.
>>>> 
>>>> Thanks in advance for any help.
>>>> 
>>>> Don
>>>> ___
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
>>>> 
>>>> This email sent to jtay...@oeinc.com
>>> 
>> 
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Storing serialized object in MySql Database

2020-08-11 Thread Don Lindsay via Webobjects-dev
Hello;

I am not using JSON here, I certainly could but that is not what the customer 
has requested.  They want serialized Java Objects, not Java Script Object 
Notation.  Java Serialized objects are byte arrays, much like a stream of file 
contents read from a disk with Reader object.

I have checked all my types and they are fine, I have even tried different 
types (var binary, BLOB, etc) all puke on a byte array.

None of the other columns have an issue, if I comment out 
getSelectedTile().takeStoredValueForKey(Session.convertObject(new 
TileStorage(this)),"serial”); the object inserts into the EC and save works.

Thanks,

Don

> On Aug 11, 2020, at 09:30, Jesse Tayler  wrote:
> 
> Well, I’m sure there is validation for JSON since that has issues with format 
> and encodings, so I’d expect some of that sort of thing here.
> 
> I don’t really see the value or whatever expected type, so I’d find that 
> value that breaks it and test it —
> 
> One thing I wonder is about text encoding, are you certain you’ve got all 
> your types correct?
> 
> I mean, it is gaging on a value somewhere, it could be a small as an invalid 
> character or sequence.
> 
>> On Aug 11, 2020, at 8:26 AM, Don Lindsay  wrote:
>> 
>> The value entered for Serial is not a valid ?.
>> 
>> ERXVaidationException
>> 
>> I have setup no Validation, so it must be Wonder or WebObjects base 
>> validation that is throwing the error
>> 
>>> On Aug 10, 2020, at 18:20, Jesse Tayler  wrote:
>>> 
>>> Did you list your error?
>>> 
>>>> On Aug 10, 2020, at 6:08 PM, Don Lindsay via Webobjects-dev 
>>>>  wrote:
>>>> 
>>>> Hello;
>>>> 
>>>> I have an app that the ucxstomer has asked to store specific serialized 
>>>> objects into a MySQL database.  I have stored serialized objects in MySQL 
>>>> many times, at customer request.  I get an error  am trying to populate 
>>>> the field with incorrect data type.  The convertObject method is a 
>>>> standard format method for serializing a java object.  It is the same code 
>>>> we use for converting objects to byte arrays in another application that 
>>>> uses jdbc.  The object is able to be serialized fine, but can’t be put 
>>>> into the column and then saved to the database by EOF.
>>>> 
>>>> The Code:
>>>> getSelectedTile().takeStoredValueForKey(Session.convertObject(new
>>>>  TileStorage(this)),"serial");
>>>> 
>>>> Tile entity :
>>>> 
>>>> attributes = (
>>>>{columnName = description; name = description; prototypeName = 
>>>> longText; }, 
>>>>{
>>>>className = "java.lang.Number"; 
>>>>columnName = id; 
>>>>externalType = INT; 
>>>>name = id; 
>>>>precision = 10; 
>>>>valueType = l; 
>>>>}, 
>>>>{columnName = name; name = name; prototypeName = longText; }, 
>>>>{
>>>>allowsNull = Y; 
>>>>className = "com.webobjects.foundation.NSData";
>>>>columnName = serial; 
>>>>externalType = BLOB; 
>>>>name = serial; 
>>>>width = 65535; 
>>>>}, 
>>>>{
>>>>allowsNull = Y; 
>>>>className = "com.webobjects.foundation.NSData"; 
>>>>columnName = tilejson; 
>>>>externalType = BLOB; 
>>>>name = tilejson; 
>>>>width = 65535; 
>>>>}, 
>>>>{
>>>>allowsNull = Y; 
>>>>className = "com.webobjects.foundation.NSData"; 
>>>>columnName = visualization; 
>>>>externalType = BLOB; 
>>>>name = visualization; 
>>>>width = 65535; 
>>>>}
>>>> ); 
>>>> I have tried to set the classname of the serial field to the class being 
>>>> stored but that does not work either.I figure if all else fails I can 
>>>> do a RAW SQL and store the serialized object, but I would prefer that EOF 
>>>> handle all that.
>>>> 
>>>> Thanks in advance for any help.
>>>> 
>>>> Don
>>>> ___
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
>>>> 
>>>> This email sent to jtay...@oeinc.com
>>> 
>> 
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Storing serialized object in MySql Database

2020-08-11 Thread Don Lindsay via Webobjects-dev
The value entered for Serial is not a valid ?.

ERXVaidationException

I have setup no Validation, so it must be Wonder or WebObjects base validation 
that is throwing the error

> On Aug 10, 2020, at 18:20, Jesse Tayler  wrote:
> 
> Did you list your error?
> 
>> On Aug 10, 2020, at 6:08 PM, Don Lindsay via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hello;
>> 
>> I have an app that the ucxstomer has asked to store specific serialized 
>> objects into a MySQL database.  I have stored serialized objects in MySQL 
>> many times, at customer request.  I get an error  am trying to populate the 
>> field with incorrect data type.  The convertObject method is a standard 
>> format method for serializing a java object.  It is the same code we use for 
>> converting objects to byte arrays in another application that uses jdbc.  
>> The object is able to be serialized fine, but can’t be put into the column 
>> and then saved to the database by EOF.
>> 
>> The Code:
>> getSelectedTile().takeStoredValueForKey(Session.convertObject(new
>>  TileStorage(this)),"serial");
>> 
>> Tile entity :
>> 
>> attributes = (
>> {columnName = description; name = description; prototypeName = longText; 
>> }, 
>> {
>> className = "java.lang.Number"; 
>> columnName = id; 
>> externalType = INT; 
>> name = id; 
>> precision = 10; 
>> valueType = l; 
>> }, 
>> {columnName = name; name = name; prototypeName = longText; }, 
>> {
>> allowsNull = Y; 
>> className = "com.webobjects.foundation.NSData";
>> columnName = serial; 
>> externalType = BLOB; 
>> name = serial; 
>> width = 65535; 
>> }, 
>> {
>> allowsNull = Y; 
>> className = "com.webobjects.foundation.NSData"; 
>> columnName = tilejson; 
>> externalType = BLOB; 
>> name = tilejson; 
>> width = 65535; 
>> }, 
>> {
>> allowsNull = Y; 
>> className = "com.webobjects.foundation.NSData"; 
>> columnName = visualization; 
>> externalType = BLOB; 
>> name = visualization; 
>> width = 65535; 
>> }
>> ); 
>> I have tried to set the classname of the serial field to the class being 
>> stored but that does not work either.I figure if all else fails I can do 
>> a RAW SQL and store the serialized object, but I would prefer that EOF 
>> handle all that.
>> 
>> Thanks in advance for any help.
>> 
>> Don
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com>
>> 
>> This email sent to jtay...@oeinc.com
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Storing serialized object in MySql Database

2020-08-10 Thread Don Lindsay via Webobjects-dev
Hello;

I have an app that the ucxstomer has asked to store specific serialized objects 
into a MySQL database.  I have stored serialized objects in MySQL many times, 
at customer request.  I get an error  am trying to populate the field with 
incorrect data type.  The convertObject method is a standard format method for 
serializing a java object.  It is the same code we use for converting objects 
to byte arrays in another application that uses jdbc.  The object is able to be 
serialized fine, but can’t be put into the column and then saved to the 
database by EOF.

The Code:
getSelectedTile().takeStoredValueForKey(Session.convertObject(new 
TileStorage(this)),"serial");

Tile entity :

attributes = (
{columnName = description; name = description; prototypeName = longText; }, 
{
className = "java.lang.Number"; 
columnName = id; 
externalType = INT; 
name = id; 
precision = 10; 
valueType = l; 
}, 
{columnName = name; name = name; prototypeName = longText; }, 
{
allowsNull = Y; 
className = "com.webobjects.foundation.NSData";
columnName = serial; 
externalType = BLOB; 
name = serial; 
width = 65535; 
}, 
{
allowsNull = Y; 
className = "com.webobjects.foundation.NSData"; 
columnName = tilejson; 
externalType = BLOB; 
name = tilejson; 
width = 65535; 
}, 
{
allowsNull = Y; 
className = "com.webobjects.foundation.NSData"; 
columnName = visualization; 
externalType = BLOB; 
name = visualization; 
width = 65535; 
}
); 
I have tried to set the classname of the serial field to the class being stored 
but that does not work either.I figure if all else fails I can do a RAW SQL 
and store the serialized object, but I would prefer that EOF handle all that.

Thanks in advance for any help.

Don ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


D2W Application Cant Add records to tables

2020-06-30 Thread Don Lindsay via Webobjects-dev
Hello;

I created a D2W application, and this may be a newbie question as I just 
started using Wonder D2W.  With WebObjects D2W, I don’t remember ever having an 
issue with creating records in tables and saving them, the button was on the 
the screen for each entity.  In this new D2W Wonder application I do not see 
any way to create records in tables, I can edit them, inspect them, query 
entities, but I cannot add.  I am hoping this is something simple that has to 
be done to enable this functionality.  

Any common mistakes that cause this type of issue?

Thanks

DoN
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Creating a EOModel in code

2020-06-30 Thread Don Lindsay via Webobjects-dev
Thank you, I appreciate all your insight.

> On Jun 29, 2020, at 13:04, OCsite  wrote:
> 
> Don,
> 
>> On 29 Jun 2020, at 17:16, Don Lindsay > <mailto:pccd...@me.com>> wrote:
>> Thanks for the information.  This may be the path I will need to go down for 
>> this specific project.  
> 
> Good luck!
> 
> I have checked our sources and actually there were two small gotcha's we did 
> bump into:
> 
> (i) programmatically added attributes are by default used for locking;
> (ii) when adding new attribute, entity does not check whether its DB column 
> is unique.
> 
> Both of these behaviours might well be intentional, but for us, both of them 
> proved a bit at the surprising side. Given we do not run multi-instance, all 
> we need to lock on are the PKs; and, we never share DB columns betwixt 
> different attributes. Thus, we had to add extra code for both the cases.
> 
> Probably not the most elegant approach by far, but this works reliably for us 
> for years (not pure Java, but I hope understandable without extra 
> Groovy-explaining comments):
> 
> ===
> @Extension(EOEntity) class EntityExtensions {
> ... ...
> void addAttributeIfNeeded(EOAttribute attr) {
> EOAttribute old=this.attributeNamed(attr.name)
> if (!old) {
> EOAttribute clash=this.attributes.find { oa -> 
> oa.columnName==attr.columnName }
> if (clash) Exception.raise "cannot add attribute '$attr.name': 
> column '$attr.columnName' already exists"
> this.addAttribute(attr)
> NSArray locks=this.attributesUsedForLocking()
> if (locks.contains(attr)) {
> locks.remove(attr)
> this.attributesUsedForLocking=locks
> }
> return
> }
> String ocn=old.className(),ncn=attr.className()
> if (ocn!=ncn) {
> Class 
> ocl=_NSUtilities.classWithName(ocn),ncl=_NSUtilities.classWithName(ncn)
> if (ocl!=ncl) { // we may get same classes for different names, 
> eg. String/NSString
> if (!ocl) Exception.raise "no class for name '$ocn' attribute 
> '$old.name'"
> if (!ncl) Exception.raise "no class for name '$ncn' attribute 
> '$attr.name'"
> if (ncl !in ocl) Exception.raise "class '$ncl' incompatible 
> with existing '$ocl' attribute '$attr.name'"
> }
> }
> [
>  'allowsNull','externalType','precision','scale',/*'width',*/ 
> 'adaptorValueClass', 'adaptorValueConversionClassName', 
> 'adaptorValueConversionMethodName', 'adaptorValueType', 'definition', 
> 'factoryMethodArgumentType', 'isReadOnly', 'prototypeName', 'readFormat', 
> 'relationshipPath', 'valueFactoryMethodName', 'valueType', 
> 'valueTypeClassName', 'writeFormat'].each { key ->
> if (old."$key"!=attr."$key") {
> Exception.raise "$key '",attr."$key","' differs from existing 
> '"+old."$key"+"' attribute '$attr.name'"
> }
> }
> }
> }
> ===
> 
> All the best,
> OC 
> 
>> 
>> Thanks
>> 
>> Don 
>> 
>>> On Jun 29, 2020, at 07:14, OCsite mailto:o...@ocs.cz>> wrote:
>>> 
>>> Don,
>>> 
>>> we do something remotely similar all the time (not creating a complete 
>>> model, but adding attributes dynamically at launch to entities). Works 
>>> without a glitch, I cannot recall any problem at all with this.
>>> 
>>> Should work for you as well, I would be rather surprised if you encounter 
>>> any problems model-side.
>>> 
>>> Potential problems might possibly occur at the database side: how do you 
>>> read the schema in? We tried lots of things, eventually decided to stick 
>>> with low-level DB-specific approach like e.g.,
>>> 
>>> def sch_list=EOUtilities.rawRowsForSQL(ec,model.name,'select "SCHEMA_PK", 
>>> "SCHEMA_NAME" from INFORMATION_SCHEMA.SCHEMATA',null)
>>> def table_list=EOUtilities.rawRowsForSQL(ec,model.name,/select "TABLE_PK", 
>>> "TABLE_NAME" from INFORMATION_SCHEMA.TABLES where 
>>> "SCHEMA_PK"=$schemaPK/,null)
>>> 
>>> and so forth, which seem to work reliably for our FrontBase. None of the 
>>> higher-level APIs we have tried worked reliably for us (note though we not 
>>> only read the schema in, but also need to add columns to tables 
>>> dynamically; presumably, you won't need that).
>>> 
>>&

Re: Creating a EOModel in code

2020-06-29 Thread Don Lindsay via Webobjects-dev
Thanks for the information.  This may be the path I will need to go down for 
this specific project.  

Thanks

Don 

> On Jun 29, 2020, at 07:14, OCsite  wrote:
> 
> Don,
> 
> we do something remotely similar all the time (not creating a complete model, 
> but adding attributes dynamically at launch to entities). Works without a 
> glitch, I cannot recall any problem at all with this.
> 
> Should work for you as well, I would be rather surprised if you encounter any 
> problems model-side.
> 
> Potential problems might possibly occur at the database side: how do you read 
> the schema in? We tried lots of things, eventually decided to stick with 
> low-level DB-specific approach like e.g.,
> 
> def sch_list=EOUtilities.rawRowsForSQL(ec,model.name,'select "SCHEMA_PK", 
> "SCHEMA_NAME" from INFORMATION_SCHEMA.SCHEMATA',null)
> def table_list=EOUtilities.rawRowsForSQL(ec,model.name,/select "TABLE_PK", 
> "TABLE_NAME" from INFORMATION_SCHEMA.TABLES where "SCHEMA_PK"=$schemaPK/,null)
> 
> and so forth, which seem to work reliably for our FrontBase. None of the 
> higher-level APIs we have tried worked reliably for us (note though we not 
> only read the schema in, but also need to add columns to tables dynamically; 
> presumably, you won't need that).
> 
> All the best,
> OC
> 
>> On 28 Jun 2020, at 17:51, Don Lindsay via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Sorry if I was not clear in my first email.
>> 
>> I don’t want to create a EOModel file.  I want to take database connection 
>> properties from the user of an application and use those to build an EOModel 
>> that is used in the application while it is running on the server.  The 
>> database connection parameters would be stored in a settings database and 
>> retrieved when the user wants to load data from that connection.  This is a 
>> tool to allow users to specify their own data sources and compare data 
>> between different datasources in whatever manner the user wishes to compare 
>> or display it.
>> 
>> Thanks for all the answers so far I was not aware Apache Cayenne could be 
>> used as a full replacement for EOF
>> 
>> Don 
>> 
>> 
>>> On Jun 25, 2020, at 20:53, Don Lindsay via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> Hello;
>>> 
>>> The Documentation for EOModel states that you can build one in code, but 
>>> there are no examples or further information that I can find.  Does anyone 
>>> have any documentation or samples that they can direct me to so I can 
>>> create EOModels while the application is running:
>>> 
>>> What I want to do is connect to a database that my app does not know about, 
>>> someone provides connection parameters and I create an EOModel and connect 
>>> to that database or rest and access it using the EOModel created using new 
>>> EOModel().
>>> 
>>> Thanks
>>> 
>>> Don
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> <mailto:Webobjects-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/pccdonl%40me.com 
>>> <https://lists.apple.com/mailman/options/webobjects-dev/pccdonl%40me.com>
>>> 
>>> This email sent to pccd...@me.com
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/ocs%40ocs.cz 
>> <https://lists.apple.com/mailman/options/webobjects-dev/ocs%40ocs.cz>
>> 
>> This email sent to o...@ocs.cz
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Creating a EOModel in code

2020-06-28 Thread Don Lindsay via Webobjects-dev
Sorry if I was not clear in my first email.

I don’t want to create a EOModel file.  I want to take database connection 
properties from the user of an application and use those to build an EOModel 
that is used in the application while it is running on the server.  The 
database connection parameters would be stored in a settings database and 
retrieved when the user wants to load data from that connection.  This is a 
tool to allow users to specify their own data sources and compare data between 
different datasources in whatever manner the user wishes to compare or display 
it.

Thanks for all the answers so far I was not aware Apache Cayenne could be used 
as a full replacement for EOF

Don 


> On Jun 25, 2020, at 20:53, Don Lindsay via Webobjects-dev 
>  wrote:
> 
> Hello;
> 
> The Documentation for EOModel states that you can build one in code, but 
> there are no examples or further information that I can find.  Does anyone 
> have any documentation or samples that they can direct me to so I can create 
> EOModels while the application is running:
> 
> What I want to do is connect to a database that my app does not know about, 
> someone provides connection parameters and I create an EOModel and connect to 
> that database or rest and access it using the EOModel created using new 
> EOModel().
> 
> Thanks
> 
> Don
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/pccdonl%40me.com
> 
> This email sent to pccd...@me.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Creating a EOModel in code

2020-06-25 Thread Don Lindsay via Webobjects-dev
Hello;

The Documentation for EOModel states that you can build one in code, but there 
are no examples or further information that I can find.  Does anyone have any 
documentation or samples that they can direct me to so I can create EOModels 
while the application is running:

What I want to do is connect to a database that my app does not know about, 
someone provides connection parameters and I create an EOModel and connect to 
that database or rest and access it using the EOModel created using new 
EOModel().

Thanks

Don
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Direct to Web Documentation for Project Wonder

2020-05-18 Thread Don Lindsay via Webobjects-dev
Hello Jesse;

Looks great, pretty close to what I am looking to do.  I have built your 
framework and included it in the project I have in Eclipse but it is not 
rendering.  I have added and removed the ERModern* frameworks as I thought they 
were conflicting but that did not have any effect.  I also looked at the readme 
in GitHub and applied the script files that were needed according to the 
document.

Thanks

Don

> On May 18, 2020, at 01:57, Don Lindsay via Webobjects-dev 
>  wrote:
> 
> Hello;
> 
> I have experience with D2W with WebObjects using Xcode.  I am modernizing an 
> application and would like to explorer the newer frameworks for D2W 
> (ERDirectToWeb, ERModern*).
> 
> Rather than blast the list with tons of questions, I was looking around for 
> documentation for the Wonder Project DirectToWeb frameworks.  I have found 
> the Wiki but it appears a bit out of date in places.
> 
> So here is what I want to do, and this was simple using the WebAssistanct 
> which I think is now deprecated as I can’t get it to run.
> 
> I want to modify the pages for QueryAll, QueryEntity, ListAll, and provide 
> additional functionality such as graphs to for instance the listing page.
> 
> That is a brief description of what I am trying to accomplish and I am hoping 
> there is documentation that can help me to do what I want without having to 
> scrape through the code to find all the pieces I need to modify and make 
> rules for them.
> 
> Thanks
> 
> Don
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/pccdonl%40me.com
> 
> This email sent to pccd...@me.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Direct to Web Documentation for Project Wonder

2020-05-18 Thread Don Lindsay via Webobjects-dev
Hello;

I have experience with D2W with WebObjects using Xcode.  I am modernizing an 
application and would like to explorer the newer frameworks for D2W 
(ERDirectToWeb, ERModern*).

Rather than blast the list with tons of questions, I was looking around for 
documentation for the Wonder Project DirectToWeb frameworks.  I have found the 
Wiki but it appears a bit out of date in places.

So here is what I want to do, and this was simple using the WebAssistanct which 
I think is now deprecated as I can’t get it to run.

I want to modify the pages for QueryAll, QueryEntity, ListAll, and provide 
additional functionality such as graphs to for instance the listing page.

That is a brief description of what I am trying to accomplish and I am hoping 
there is documentation that can help me to do what I want without having to 
scrape through the code to find all the pieces I need to modify and make rules 
for them.

Thanks

Don
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com