Ibatis Dynamic Table Setting and Result Mapping

|
So, for some reason my Google Fu was weak this morning when I wasted a half an hour looking for the solution so clearly laid out here. If you're dynamically setting $tables$ in your sqlmap to a dynamic resultclass, Ibatis remembers the mapping of the previous query results to save time. This'll throw an error like
Exception in thread "main" com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in SqlMaps.xml.  
--- The error occurred while applying a result map.  
--- Check the getSpecs-AutoResultMap.  
--- Check the result mapping for the 'MAX_APERTURE' property.  
--- Cause: java.sql.SQLException: Invalid column name
Caused by: java.sql.SQLException: Invalid column name
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(Unknown Source)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(Unknown Source)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(Unknown Source)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(Unknown Source)
Solution is a super simple boolean in the select element "remapResults". Making it look something like:
select id="getSpecs" parameterClass="java.util.HashMap" resultClass="java.util.HashMap" remapResults="true"

Whitehouse.gov - Where did the Inaugural Address go?

|
So many of us hit the new and improved whitehouse.gov yesterday looking for the next myspace only to find that it was a very pretty and potentially useful site.

::sigh::

As gizmodo points out, it's light years ahead of the whitehouse.gov that was available during the bush administration.

The reveal was jobs-esque. No one really knew it was coming, but the fanboys went wild. So, realizing that I'd probably never visit the site again, I went to grab the rss and low and behold, not five minutes after the inaugural address had ended, there's an rss entry for it.



The page was empty.



And now seems to have been pulled from the feed. And the page to hold the address is still empty.

Not a huge gaffe, but a gaffe nonetheless.

Windows 7 Fail

|
Phenomenal alright,
Thanks for your interest in the Windows 7 Beta. The volume has been phenomenal -- we’re in the process of adding more servers to handle the demand. We’re sorry for the delay and we’ll re-post the Beta as soon as we can ensure a quality download experience.
phenomenal suck.

please respond - glenda molins

|
from glenda molins
reply-to glenmolins@aim.com
date Fri, Jan 2, 2009 at 3:49 PM
subject please respond
From: Mrs. Glenda Molins
My Dear Beloved,

I am the above named person but now undergoing medical treatment in Sunward Park Hospital, Gauteng. south africa. I am married to Dr. Charles Molins who worked with British Judicial Commission in England for over a decade before he died on 5th of July in the year 2004. We were married for fifteen years without a child. He died after a brief illness that lasted for two weeks.

Before his death he made a vow to use his wealth for the down trodden and the less privileged in the society. Since his death I decided not to re-marry or get a child outside my matrimonial home. When my late husband was alive he deposited the sum of Ј3.5 Million (Three and a half Million Pounds sterling) with one Finance/Security Company in Europe.
Presently, this money is still with the Security Company. Recently, my Doctor told me! that I would not last for the next 4 months due to a rare form of cancer of the pabcreas. Though what disturbs me most is my stroke.! Having known my condition I decided to donate this fund to an indiv idual or better still a God fearing person who will
utilize this money the way I am going to instruct here in. I want an individual that will use this to fund and provide succor to poor and indigent persons, orphanages, and widows and for propagating peace in the universe.

I understand that blessed is the hand that giveth. I took this decision because I do not have any child that will inherit this money and my husband relatives are not inclined to helping poor persons and I do not want my husbands hard earned money to be misused or spent in the manner in which my late husband did not specify. I do not w! ant a situation where this money will be used in an ungod ly manner, hence the reason for taking this bold decision. I am not afraid of death
hence I know where I am going. I know that I am going to be in the bosom of the Almighty. I do not need any telep! hone communication in this regard because of my health, and because of the presence of my husband's relatives around me always. I do not want them to know about this development. With God all things are possible. As soon as
I receive your reply I shall give you the contact of the Finance/Security Company in Europe. I will also issue you a letter of
authority that will empower you as the original beneficiary of this fund. I want you to always pray for me.

My happiness is that I lived a life worthy of emulation. Whosoever that wants to serve the Almighty must serve him with all his heart and mind and soul and also in truth. Please always be prayerful all through your life. Any delay in your reply will give me room in sourcing for an individual for this same purpose. Please assure me that you will act according to my specification herein.

Thank you and may the Almighty bless you

Yours sincerely,

Mrs. Glenda Molins

NOTE= direct your response to this email for more information and for sake of confidentiality [ glenmolins@aim.com ]