Just Voted

After hearing all of the horror stories about the long waits and issues with early voting, I was preparing for the worst today, but it never happened. My polling place is an Elementary school within walking distance of my house. I left my house at 9:15, was back home by 9:45. Voting took a total of probably 10 minutes. Lovely!

On a side note, this is the first time I’ve voted in a while where I voted for someone because I really felt strongly about them. Usually voting comes down to which person do you hate the least, the lesser of two evils.
|

Couple new games: Guitar Hero World Tour and Lego Batman

After finishing Lego Indiana Jones I went out looking for a new game to play. I enjoyed the Lego game so much that I purchased the Lego Batman game. I’ve played the first level so far and it’s just as fun as the Indiana Jones game.

I also found that Guitar Hero World Tour is now out. I purchased the game itself, instead of going for the whole kit at the moment, just didn’t feel like spending that much. If you purchase the whole kit you get a drum set, guitar, and microphone. This new guitar hero is competing with Rock Band. The game is fun, and I may end up purchasing the drum set at a later date, because there are some good drum songs on it; but I will hold off for now.
|

NHibernate Class Level Filtering

While this information is available in the NHibernate documentation, it’s easy to overlook. If you have a filter you apply to all of your queries through a ‘Where’ clause in NHibernate, you can place that ‘Where’ clause in your HBM file at the class level.

For example, we don’t delete data where I work, we need it for historical reporting and for searching. Instead of deleting we usually have an active indicator. What this causes is all of our queries always have “WHERE ACTIVE_IND = ‘Y’” tacked onto the end. Instead of doing that we can just place this in our HBM and it will automatically be applied to any query.

<class name=”className” table=”tableName” where=”ACTIVE_IND = ‘Y’”>
...
</class>

I want to thank my co-worker Kevin Brill for pointing this out.

|