Software Development

Monday, March 31, 2008

GORM Relationship: One-to-one

One-to-one
Uni-directional
class Face {
Nose nose
}
class Nose {
}
unidirectional and allow saves/updates to cascade down
class Face {
Nose nose
}
class Nose {
static belongsTo = Face
}

bidirectional
class Face {
Nose nose
}
class Nose {
Face face
}

updates/inserts will be cascaded + delete cascaded
class Face {
Nose nose
}
class Nose {
static belongsTo = [face:Face]
}


Thursday, March 13, 2008

Reference: Best Practices for Speeding Up Your Web Site

Reference: Top 10 Best Practices for Production ASP.NET Applications

Tuesday, March 11, 2008

Configuring Hudson as CI

After trying out CruiseControl, I decide to give Hudson a go.



Setting Up
  1. Downloaded ver 1.192 from Hudson website.
  2. Put it in my file system and run "java -jar hudson.war"
  3. Go to localhost:8080/ and saw Hudson Dashboard, so far so good.
  4. I proceed to create a new job: "test"
    1. selected the "Build a free-style software project"
    2. Under "Source Code Management" I selected Subversion and entered URL as "http://winxp:8000/svn/my-project/trunk"
    3. Under "Build", I selected "Invoke Ant"
      1. For Build File, I entered "DesktopApplication1/build.xml" (where "DesktopApplication1" is my Netbeans project's name)
    4. That's it!
  5. When I try building, it was successful.