Arnljot.com

Archive for December, 2006

Christmas and newyear is Mario Time!

by arnljot on Dec.26, 2006, under other

Acoustic Super Mario Medley

Ramona, You know we’re gonna play! :)

Leave a Comment more...

JPA tutorial

by arnljot on Dec.17, 2006, under java

It’s a year old, but still a nice little “overview tutorial” of how JPA can be used. You’ll find it here.

Leave a Comment more...

Little gem

by arnljot on Dec.17, 2006, under java

While browsing for Spring/Hibernate/JPA stuff today, I found this little article concerning toString(), equals() etc on a blog.

It efficiently sums up what I’ve been trying to tell fellow developers using ORM tools over quite some time. It’s no new revolutionary knowledge, but it sums it up quite nicely.

Leave a Comment more...

Java training in Norway

by arnljot on Dec.15, 2006, under java

I’ve always presumed (probably due to excessive lazyness on my part) that it’s very hard to find out what Java training that is available in Oslo.

I was wrong, within 30 minutes of browsing and googling yesterday I found a load of interesting training offers in January here in Oslo. The problem: As always, money. But I hope we’ll find it in our hearts and budgets to do some training :)

Hibernate, JPA, Spring and EJB3 are things I’d like to do some advanced training on next year.

Leave a Comment more...

Aha! (2) - Hibernate

by arnljot on Dec.15, 2006, under java

Well, I’ve never used it, for some embarresing reason. But yesterday I enabled “-Dhibernate.show_sql” - It was almost perfect! :)

Now, is there a way I can also see the values that are passed to the database??

Leave a Comment more...

Aha - Hibernate and composite keys

by arnljot on Dec.14, 2006, under java

This is old news to most people I guess. But I’m currently working with a legacy database where I can’t just go and do a “alter table” statement and introduce “@hibernate.version” or something to get saveOrUpdate() to work in the session.

Currently all operations created an insert…

So this is what I finally read on the topic(7.4. Components as composite identifiers):

You may instead implement Interceptor.isUnsaved() if you wish to use saveOrUpdate() or cascading save / update. As an alternative, you may also set the unsaved-value attribute on a (or ) element to specify a value that indicates a new transient instance. In this case, the version of the entity is used instead of the (assigned) identifier and you don’t have to implement Interceptor.isUnsaved() yourself.

So! A slight change in the persistance layer, and I think I’ll be fine :)

Leave a Comment more...

Wishlist

by arnljot on Dec.14, 2006, under other

As it’s soon christmas, I’ll help out my family and girlfriend: Here is my wishlist, the kind of things one can find at Amazon.co.uk :)

Leave a Comment more...

XP

by arnljot on Dec.06, 2006, under other

This is not about how I dumped linux on my HTPC yesterday and installed XP, but how much I enjoy doing things XP style.

I’m currently rewriting an application from a custom made framework to the customers own framework based on various standards (some dated, like Struts 1.1).

Much of the approach we’ve been forced to take due to the lack of time available to us has been to just build, remodel and build. Or in other words, write some code. Write some more code, and then think “hey, I’ve written this before!”.

And it goes fast too! We’re a quite small team, five developers, so it’s fairly easy to keep track of eachother and learn from eachothers best practices.

So in four weeks of coding (two have passed so far), it seems like we’ll actually manage to rewrite the entire app from one framework into another. It’s not much code, but the design and app we had to work with was a challenge.

My current client is great, and I really hope I get to stay here and do more good work for them. They have lots of big systems, and a lot of stuff I’d love to get my hands into and make as good as we’re doing the current app ;)

Leave a Comment more...

Missing!

by arnljot on Dec.03, 2006, under other

DonkeyIt’s been a few days, and I’m now reporting him missing.

My new friend which I got from my sister for my 30th birthday. I love plush covered PEZ dispensers, and my new donkey of the “Fuzzy Farm” series has gone missing, leaving my red tiger from the “Wild Zoo!” lonely…

If my friend is returned I’ll be very happy, he was last seen in my pocket while I was on my way for work.

Leave a Comment more...

Tapestry 5

by arnljot on Dec.01, 2006, under java

It’s been a while since I’ve read Howard Lewis Ships blog, but I’m really excited to see the two screencasts that Howard has posted. (Screencast#1 and Screencast#2).

The use of jetty and hotdeploying without repackaging is one of its hottest features. I’m really keen to see how this can be adopted into appfuse. I’ll have to look into that! :)

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!