To get the hammer in Rune Factory: Frontier, head up to Whale Island and enter. Avoid the monsters as you go deeper until you reach a room with a girl and a rock.
She'll give you the hammer, which you use to break the rock down and restore the spring. So push through to that room and you'll have your hammer in hand.