[Modelj-user] Bug when running demo on oracle + feature proposals.
Status: Beta
Brought to you by:
tom_tessier
|
From: Piotr W. <pwa...@ya...> - 2003-05-28 08:21:58
|
Hello!
First I would like to thank for developing this
project.I think it is a great approach for developing
flexible end-to-end apps.
1.I was running your demo on oracle and I have
discovered following problem:
There couldn't be created table for 'User' bean
because 'user' is a reserved word in oracle.
2.You could add a nice feature as length property for
string attributes, because now it is created with
default length. I think it is only change in
jbosscmp-jdbc.vm:
#foreach ($bean in $beans)
<entity>
<ejb-name>$bean.name</ejb-name>
<table-name>$bean.name.toUpperCase()</table-name>
#foreach ($attribute in $bean.attribute)
#if ( ( $attribute.type.toLowerCase() == 'string' ) &&
$attribute.length != '' )
<cmp-field>
<field-name>${attribute.name}</field-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>VARCHAR($attribute.length)</sql-type>
</cmp-field>
#end
#end
3.Link-to-single-object could be also modelled better,
now I think I can model this only by child
relationship collection with own constraint that it
contains only one element.Better would be to have it
modelled as complex attribute (reference to bean).
Best regards
Piotr Walendziak
=====
Piotr Walendziak
e-mail: pwa...@ya...
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
|