<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: cfNotate &#8211; CFC Persistence Based on Inline Code Annotations &#8211; Take that XML and shove it!</title>
	<atom:link href="http://www.harelmalka.com/?feed=rss2&#038;p=68" rel="self" type="application/rss+xml" />
	<link>http://www.harelmalka.com/?p=68</link>
	<description>.oOo. Its a dot's world .oOo.</description>
	<lastBuildDate>Fri, 20 Aug 2010 12:42:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: harel</title>
		<link>http://www.harelmalka.com/?p=68&#038;cpage=1#comment-1460</link>
		<dc:creator>harel</dc:creator>
		<pubDate>Thu, 17 May 2007 06:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.harelmalka.com/?p=68#comment-1460</guid>
		<description>Hi Klaas, 
Yes I did look at chips note and have toyed with that idea as well. I chose the annotation style because potentially this can include a lot of data  and the attribute style can potentially lead to clutter - comments can be folded in most IDEs, while attributes cannot. Also attributes are too restrictive. Comments can be what I want them to be. Attributes must be name=value pairs in double quotes.  As well, as you said - I&#039;m not sure we can rely on getMetaData to ALWAYS return same data, even in 2-3 years time in the future. 
My idea was to start with database mapping but progress it to gui representations and validation rules. I&#039;ve done this before with XML files but inline code annotations keeps everything closer to home. I like your idea of adding other modes of persistence like the file system - sounds very useful. 
I&#039;ve just recently completed a small photo blog application using cfNotate. It was done for a friend&#039;s project and will go online soon. Nothing fancy but it turned out quite well and made me tweak the framework a tiny bit. I did add something in regards of pulling data from other tables though I don&#039;t think its as elegant as it can be. Perhaps we can come up with something that&#039;s got style and sleekness to it ;o)
This is an initial draft/proof of concept, and I didn&#039;t even have time to integrate my tweaks from the photoblog into it. I intend to post the entire source for it as a sample application once it goes up online. 
My schedule in the next 2 weeks is going to be hectic, but  I&#039;ll try to find some time to post the source for the photoblog and integrate the changes made to the framework. 
Hmm... this could be a start of an interesting project ;o). 

Harel</description>
		<content:encoded><![CDATA[<p>Hi Klaas,<br />
Yes I did look at chips note and have toyed with that idea as well. I chose the annotation style because potentially this can include a lot of data  and the attribute style can potentially lead to clutter &#8211; comments can be folded in most IDEs, while attributes cannot. Also attributes are too restrictive. Comments can be what I want them to be. Attributes must be name=value pairs in double quotes.  As well, as you said &#8211; I&#8217;m not sure we can rely on getMetaData to ALWAYS return same data, even in 2-3 years time in the future.<br />
My idea was to start with database mapping but progress it to gui representations and validation rules. I&#8217;ve done this before with XML files but inline code annotations keeps everything closer to home. I like your idea of adding other modes of persistence like the file system &#8211; sounds very useful.<br />
I&#8217;ve just recently completed a small photo blog application using cfNotate. It was done for a friend&#8217;s project and will go online soon. Nothing fancy but it turned out quite well and made me tweak the framework a tiny bit. I did add something in regards of pulling data from other tables though I don&#8217;t think its as elegant as it can be. Perhaps we can come up with something that&#8217;s got style and sleekness to it ;o)<br />
This is an initial draft/proof of concept, and I didn&#8217;t even have time to integrate my tweaks from the photoblog into it. I intend to post the entire source for it as a sample application once it goes up online.<br />
My schedule in the next 2 weeks is going to be hectic, but  I&#8217;ll try to find some time to post the source for the photoblog and integrate the changes made to the framework.<br />
Hmm&#8230; this could be a start of an interesting project ;o). </p>
<p>Harel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaas-Jan Winkel</title>
		<link>http://www.harelmalka.com/?p=68&#038;cpage=1#comment-1459</link>
		<dc:creator>Klaas-Jan Winkel</dc:creator>
		<pubDate>Thu, 17 May 2007 01:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.harelmalka.com/?p=68#comment-1459</guid>
		<description>Hi, 
I think this is a really good base for a good ORM.

* On contrary to Reactor/Transfer/ObjectBreeze, this starts at the object level and then down to the database.
* Leaves your business object model completely intact
* Have your mappings to the database or another place to persist close to your object while not putting storage dependent stuff in them
* It doesnt generate mappings automatically, when mapping objects to a relational database, sometimes there is more ways then 1. And maybe part of your properties you dont even want to store. This can all be dealt with.

 Did you have a look at what Chip said? I had a look and that might also be an option, but i wonder if its a good idea to depend on the getmetadata function always returning those extra custom attributes, it might be tricky. Might also get problems when object/method/properties dont map one-to-one to the database.

If i have time i want to make an ORM this way, also want to make it more general so you can persist not only into a database, but for example into a file system (for example in case of photo files which you dont want to store as BLOB&#039;s in a database)

What your missing in your proof of concept is managing of relations to other objects.. right? Did you by any chance already put some work in that?

greets,
klaas</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I think this is a really good base for a good ORM.</p>
<p>* On contrary to Reactor/Transfer/ObjectBreeze, this starts at the object level and then down to the database.<br />
* Leaves your business object model completely intact<br />
* Have your mappings to the database or another place to persist close to your object while not putting storage dependent stuff in them<br />
* It doesnt generate mappings automatically, when mapping objects to a relational database, sometimes there is more ways then 1. And maybe part of your properties you dont even want to store. This can all be dealt with.</p>
<p> Did you have a look at what Chip said? I had a look and that might also be an option, but i wonder if its a good idea to depend on the getmetadata function always returning those extra custom attributes, it might be tricky. Might also get problems when object/method/properties dont map one-to-one to the database.</p>
<p>If i have time i want to make an ORM this way, also want to make it more general so you can persist not only into a database, but for example into a file system (for example in case of photo files which you dont want to store as BLOB&#8217;s in a database)</p>
<p>What your missing in your proof of concept is managing of relations to other objects.. right? Did you by any chance already put some work in that?</p>
<p>greets,<br />
klaas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chip</title>
		<link>http://www.harelmalka.com/?p=68&#038;cpage=1#comment-1338</link>
		<dc:creator>Chip</dc:creator>
		<pubDate>Sat, 07 Apr 2007 16:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.harelmalka.com/?p=68#comment-1338</guid>
		<description>Interesting post.  I have taken a different approach- using custom attributes on cfcomponent,function,argument and property tags to accomplish similar annotation ends.  This allows you to use the built-in reflection api (getMetaData).  See my CFDJ article for more details: http://coldfusion.sys-con.com/read/311292.htm</description>
		<content:encoded><![CDATA[<p>Interesting post.  I have taken a different approach- using custom attributes on cfcomponent,function,argument and property tags to accomplish similar annotation ends.  This allows you to use the built-in reflection api (getMetaData).  See my CFDJ article for more details: <a href="http://coldfusion.sys-con.com/read/311292.htm" rel="nofollow">http://coldfusion.sys-con.com/read/311292.htm</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
