Yes, the generated data is random letters. If we had a dictionary of
words to choose from, I'd be happy to change that code. Here's the
method:
private String generateStringValue() {
int maxLen = 0; // todo: figure out getHibernateLength();
if (maxLen == 0) { maxLen = 10; }
StringBuffer result = new StringBuffer("\"");
for (int i = 0; (i < maxLen); i++) {
int j = 0;
if (i % 2 == 0) {
j = (int) ((Math.random() * 26) + 65);
} else {
j = (int) ((Math.random() * 26) + 97);
}
result.append(new Character((char)j).toString());
}
result.append("\"");
return result.toString();
}
Matt
On 7/17/07, Fred Forester <[EMAIL PROTECTED]> wrote:
Matt,
thanks for the quick reply.
turns out the garbage is comming from metadata/sql/sample-data.xml. is
it normal for the sample data to look something like zMqEiBjOnYdGcPlY?
if so then I should be ok cause that's easily fixed.
also removed the encoding and charset options from the db url.
Thanks again
Fred
Matt Raible wrote:
> You might try changing your database.url (I believe it's in
> properties.xml) to not have encoding turned on its URL. If that
> doesn't work, you might look at the <schemaexport> task in build.xml -
> that's what handles creating the tables.
>
> Matt
>
> On 7/17/07, Fred Forester <[EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> Im very new to appfuse and Im trying to use Appfuse to develop an app
>> going against a legacy MySql 4.1.11 database. I cannot use Unicode or
>> UTF-8 encoding since it would break the legacy app. when I run 'ant
>> setup' the table gets switched it seems and the screens are displaying
>> giberish. if I reload the table from a backup everything looks ok.
>> I would like to be able to do the following during testing and
>> development. I'm using AppFuse 1.9.4
>>
>> 1) ant setup does not drop and re create the tables if they already
>> exist.
>> 2) the tables not get switched to UTF-8 when Models are getting rebuilt
>> or modified.
>>
>>
>> Thanx
>> Fred Forester
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]