Monthly Archives: October 2006

hibernate and component querying

Well here is some interestingness with querying for components using the 3.2.0cr5 version of hibernate. (FYI using accessor methods is the way the code was actually written. Direct references to properties in this example used just for clarity.) Components in … Continue reading

Posted in hibernate | Leave a comment

equity splitting

So I read this really interesting blog by Noam Wasserman. As someone who is trying to make a go of his first company, one of the problems I face is how to give up equity in a way that makes … Continue reading

Posted in starting a company | Leave a comment

rail speed records and the effect on airplane travel

September 2, 2006 Siemens used the recently-opened Nuremburg-Ingolstadt high-speed line in southern Germany to set a new world record for an electric locomotive. The Austrian Federal Railways class 1216 locomotive reached 357 km/h or 221mph December 2, 2003 a manned … Continue reading

Posted in sierraclub, transportation | Leave a comment

what is the rail advantage in CO2 emissions over an equivalent air flight?

This week there was a news release by the Eurostar company about the comparative emissions of a Eurostar trip vs. the same trip via airplane. each passenger on a return flight between London Heathrow and Paris Charles de Gaulle generates … Continue reading

Posted in sierraclub, transportation | 6 Comments

notes on building a “Super Railroad”

I got this information from a Sierra Club email list I am on that has some useful technical information about how to build a really first class railroad. This comment was posted by Clyde L. Anderson, Treasurer, Nebraska Chapter – … Continue reading

Posted in sierraclub, transportation | 2 Comments

How to do redirects in tapestry

How to do client-side redirects-after-post (taken from someone else’s sample code): public abstract class somePage extends ATapestryPage { @InjectObject(“engine-service:page”) public abstract IEngineService getPageService(); public ILink theListenerMethod() { /* Redirect to next page. SECURITY NOTE – do not use simple page … Continue reading

Posted in tapestry | Leave a comment

Hibernate nastiness using the one-to-one mapping.

Hibernate nastiness filed as bug HHH-2128. When reading this please notice that this situation arose from the most minimal definition. Using the ‘defaults’ is what caused this issue! Steps: define two classes (Primary, Secondary) that have a one-to-one relationship. use … Continue reading

Posted in hibernate, technical | Leave a comment

Hibernate’s event system

So I just had an interesting realization, Hibernate uses various default listeners in it’s poorly documented event system to do all of its persistence work. For example, saving an object through a Hibernate Session object quickly goes to the Session.fireSaveOrUpdate, … Continue reading

Posted in amplafi, help notes, hibernate | 6 Comments