David Soergel wrote:
> Thanks! :)
> 
> I'm still paranoid that code that runs fine for me will turn out to
> break for someone else... I hope we get either more bug reports or
> more positive feedback to reassure me that my additions actually work
> and are useful in different contexts. :)
> 
> Did you have any thoughts on the "future directions" post I sent a
> couple of days ago?  Jon, aside from your discomfort with code
> generation in general, do you think it would be useful to connect
> Town to Turbine somehow (for instance, ORMapMaker could generate
> Peers, and even Actions, Screens, etc. instead of servlets)?  I'm not
> yet familiar with Turbine at all, actually, so I don't have any
> concrete ideas about this for now... and it sounds as though you
> already have some (village-based?) DB infrastructure built in...?

Your list of different classes that could be generated gave me an idea. 
At one point I was pretty gung-ho on making Town bean-compliant to make
it easier to use in JSPs.  I've abandoned that in favor of making a
Taglib based on Town.  I thought something like this would be cool...

<table>
<towndataset url="jdbc:odbc..." driver="..." username="..."
password="..." tablename="...">
<tr><td><%=col1name%></td><td><%=col2name%></td></tr>
</towndataset>
</table>

For those not familiar with JSP 1.1's tags, the <towndataset> could
automatically loop through the markup based on the number of records,
setting local variables that match the column names.

Taking your approach, you could have ORMapMaker generate custom tag
libs, so each table/object mapping would get it's own tag.  Interesting
to anyone?...

Serge


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to