Monday, February 7th, 2005: The Salary Cap Ruined the NFL


regolith
Ready to Hibernate
02/07/05 12:30:52 AM  <link>
by: regolith - mood: cooking
A week ago, I installed the Java application server Resin at home, to play around with it... Didn't really get far, as J2EE is like some maze of acronyms and libraries, but every time I pound my head against it, the structure becomes more clear. If I had more money, I'd buy a book or something. :\

This weekend, I tried out Hibernate, a Java Object/Relational mapping library/service. Basically, you write an XML file to map your object's attributes to fields in the database, and Hibernate takes care of the rest. (well, you need to create the DB table if you haven't already) You can even use java 1.5's new Annotations ability to get rid of the xml file. It seems like you almost don't have to touch SQL, and it can speak the SQL dialects of many databases, so you can make a single mapping that work on multiple platforms (I'm thinking this is iffy, though). It'll handle links from one object to another in the DB and pull the linked objects in as you access them, instead of all at once (lazy initialization).

Also, Ong Bak! The trailer I saw on tv was better, but... !!!

--regolith

regolith
It's not so bad...
02/08/05 12:57:52 PM  <link>
by: regolith - mood: normal
Turns out, that dilemma I had on Friday was solved more easily than I expected. Since I hadn't started updating shipping and order code to the new inventory stuff, I brought the old inventory code back in another file that I can just remove when I'm done with the new inventory code...

Also, the other I/T guy here quit yesterday... Now I'll have to do whatever annoying stuff he did. Bleah.

--regolith


[6124 views]