<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>example/src/main/resources/Example1-app.xml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,64 +1,51 @@
 &lt;?xml version=&quot;1.0&quot;?&gt;
 &lt;mx:WindowedApplication xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
-                creationComplete=&quot;onComplete()&quot;&gt;
-
-    &lt;mx:Panel title=&quot;My Application&quot;
-              paddingTop=&quot;10&quot;
-              paddingBottom=&quot;10&quot;
-              paddingLeft=&quot;10&quot;
-              paddingRight=&quot;10&quot;&gt;
-
-        &lt;mx:Label id=&quot;out&quot;
-                  text=&quot;Hello World!&quot;
-                  fontWeight=&quot;bold&quot;
-                  fontSize=&quot;24&quot; /&gt;
-
-    &lt;/mx:Panel&gt;
+                        creationComplete=&quot;onComplete()&quot;&gt;
 
     &lt;mx:Script&gt;
 
         &lt;![CDATA[
             import org.projectsnooze.EntityFacade;
-			import org.projectsnooze.impl.EntityFacadeImpl;
-			
-      		import domain.*;
+            import org.projectsnooze.impl.EntityFacadeImpl;
+            
+            import domain.*;
             
             private var facade:EntityFacade = new EntityFacadeImpl();
             
             private function onComplete():void
             {
                 trace(&quot;Example1.mxml::onComplete()&quot;);
-				facade.addEntityClass( Mother );
-				facade.addEntityClass( Child );
-				facade.addEntityClass( SchoolClass );
-				facade.addEntityClass( Concern );
-				
-				facade.getSession().createDatabase();
+                facade.addEntityClass( Mother );
+                facade.addEntityClass( Child );
+                facade.addEntityClass( SchoolClass );
+                facade.addEntityClass( Concern );
+                
+                facade.getSession().createDatabase();
                 
-				var school:SchoolClass = new SchoolClass();
-				school.setName( &quot;Big School Place&quot; );
+                var school:SchoolClass = new SchoolClass();
+                school.setName( &quot;Big School Place&quot; );
                 
-		   		var mother:Mother = new Mother();
-		   		mother.setName( &quot;jane&quot; );
+                var mother:Mother = new Mother();
+                mother.setName( &quot;jane&quot; );
                 
-		   		var concern:Concern = new Concern();
-		   		concern.setConcern( &quot;blah blah&quot; );
+                var concern:Concern = new Concern();
+                concern.setConcern( &quot;blah blah&quot; );
                 
-		   		var concern2:Concern = new Concern();
-		   		concern2.setConcern( &quot;blah2 blah2&quot; );
+                var concern2:Concern = new Concern();
+                concern2.setConcern( &quot;blah2 blah2&quot; );
                 
-		   		mother.addConcern( concern );
-		   		mother.addConcern( concern2 );
+                mother.addConcern( concern );
+                mother.addConcern( concern2 );
                 
-		   		for ( var i:int = 0 ; i &lt; 10 ; i ++  )
-		   		{
-			   		var child:Child = new Child();
-			   		child.setHeight( i );
-			   		child.setMother( mother );
-			   		school.addChild( child );
-		   		}
-		
-				facade.getSession().save( school );
+                for ( var i:int = 0 ; i &lt; 10 ; i ++  )
+                {
+                    var child:Child = new Child();
+                    child.setHeight( i );
+                    child.setMother( mother );
+                    school.addChild( child );
+                }
+        
+                facade.getSession().save( school );
             }
         ]]&gt;
 </diff>
      <filename>example/src/main/flex/Example1.mxml</filename>
    </modified>
    <modified>
      <diff>@@ -109,6 +109,17 @@ package org.projectsnooze.impl.scheme
 			}
 			//TODO: return the derived name
 			// ie, not from metadata
+			
+			if ( getGetter() is Variable
+			 	|| getGetter() is Accessor )
+			{
+				return getGetter().getName();
+			} else
+			{
+				return getGetter().getName().substr( 3 ,
+				 	getGetter().getName().length );
+			}
+			
 			return null
 		}
 		</diff>
      <filename>lib/src/main/flex/org/projectsnooze/impl/scheme/NameTypeMappingImpl.as</filename>
    </modified>
    <modified>
      <diff>@@ -230,7 +230,8 @@ package org.projectsnooze.impl.scheme
 					// create a Relationship object to describe the relationship from
 					// the perspective of the annotated class
 					var hasMetadata:Relationship = new RelationshipImpl();
-					
+					trace(&quot;SchemeBuilderImpl::createNonRelatedDataMaps()&quot;,
+						prop, prop.getName() );
 					var describedClazz:String = prop.getMetaDataByName( 
 						typeName ).getArgByKey( &quot;ref&quot; );
 						
@@ -239,6 +240,11 @@ package org.projectsnooze.impl.scheme
 					var describedDataMap:EntityDataMap = 
 						getEntityDataMapProvider().getEntityDataMapByClassName( describedClazz );
 					
+					if( !describedDataMap )
+					{
+						throw new Error( &quot;no datamap found for &quot; + describedClazz );
+					}
+					
 					// create the relationship
 					var describedByMetadata:Relationship = new RelationshipImpl();
 					describedByMetadata.setEntityDataMap( entityDataMap );
@@ -266,7 +272,6 @@ package org.projectsnooze.impl.scheme
 		
 		private function addId ( reflection:Reflection, dataMap:EntityDataMap ):void
 		{
-			
 			var ids:Array = reflection.getPropertiesWithMetaData( MetaData.ID );
 			
 			var mapping:NameTypeMapping = new NameTypeMappingImpl();</diff>
      <filename>lib/src/main/flex/org/projectsnooze/impl/scheme/SchemeBuilderImpl.as</filename>
    </modified>
    <modified>
      <diff>@@ -70,7 +70,7 @@ package uk.co.ziazoo.reflection
 		
 		public function getMetaDataIterator():Iterator
 		{
-			return new ArrayIterator( _metaData );
+			return new ArrayIterator( metaData );
 		}
 	}
 }</diff>
      <filename>lib/src/main/flex/uk/co/ziazoo/reflection/MethodImpl.as</filename>
    </modified>
    <modified>
      <diff>@@ -211,6 +211,7 @@ package uk.co.ziazoo.reflection
 				if( prop is MetaDataList )
 				{
 					var metaDataList:MetaDataList = prop as MetaDataList;
+					
 					if( metaDataList.hasMetaData( name ) )
 					{
 						haveMetaData.push( metaDataList );</diff>
      <filename>lib/src/main/flex/uk/co/ziazoo/reflection/ReflectionImpl.as</filename>
    </modified>
    <modified>
      <diff>@@ -31,6 +31,16 @@
 					&lt;locales&gt;
 						&lt;locale&gt;en_US&lt;/locale&gt;
 					&lt;/locales&gt;
+					&lt;keepAs3Metadatas&gt;
+						&lt;param&gt;Id&lt;/param&gt;
+						&lt;param&gt;Entity&lt;/param&gt;
+						&lt;param&gt;Transient&lt;/param&gt;
+						&lt;param&gt;ManyToOne&lt;/param&gt;
+						&lt;param&gt;ManyToMany&lt;/param&gt;
+						&lt;param&gt;OneToMany&lt;/param&gt;
+						&lt;param&gt;OneToOne&lt;/param&gt;
+						&lt;param&gt;Column&lt;/param&gt;
+					&lt;/keepAs3Metadatas&gt;
 				&lt;/configuration&gt;
 			&lt;/plugin&gt;
 			&lt;plugin&gt;</diff>
      <filename>pom.xml</filename>
    </modified>
    <modified>
      <diff>@@ -28,7 +28,7 @@ package domain
 			_pupils.push( child );
 		}
 		
-		[OneToMany(many=&quot;domain::Child&quot;)]
+		[OneToMany(ref=&quot;domain::Child&quot;)]
 		public function getPupils ():Array
 		{
 			return _pupils;</diff>
      <filename>shared/src/main/flex/domain/SchoolClass.as</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b24af26baf54584f8279e3cb52b68918af776688</id>
    </parent>
  </parents>
  <author>
    <name>Sam Williams</name>
    <email>samueltwilliams@gmail.com</email>
  </author>
  <url>http://github.com/sammyt/snooze/commit/d60d54d46fcf96524ba7ccef7772557e96ddd33f</url>
  <id>d60d54d46fcf96524ba7ccef7772557e96ddd33f</id>
  <committed-date>2008-10-19T11:13:37-07:00</committed-date>
  <authored-date>2008-10-19T11:13:37-07:00</authored-date>
  <message>got it working after big refactor</message>
  <tree>0da1f01d74cf35146ec0a2bf48f7f47961251722</tree>
  <committer>
    <name>Sam Williams</name>
    <email>samueltwilliams@gmail.com</email>
  </committer>
</commit>
