This post is really a record for both myself and anyone else who ever comes across the same problem.
The Problem: Given two entities with a many-to-many association between them, the join table isn’t being populated when an association is made.
The Problem Set: Two persistent entities, “Group” and “ActivityType” with a many-to-many association between them. A [...]
Tag Archive for 'java'
If you’ve ever tried to reuse a session in Hibernate you may have come across this exception…
org.hibernate.SessionException: Session is closed!
at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1319)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:301)
at [...]
UPM 1.1 Released
01Sep06It’s only taken me 7 months but I’ve finally managed to release version 1.1 of UPM. This release introduces one of the main features I’ve wanted since the start of this project, database sharing. This feature allows you to keep your password databases in sync across many machines, in my case my home and work [...]
Universal Password Manager
09Dec05After a few months of on and off development I’ve finanally managed to release the first beta of a password manager I’ve been working on. It’s called Universal Password Manager (UPM).
My main reason for developing it was so that I could use the same password database on both my home (Mac) and work computers (Windows). [...]
I was installing CruiseControl on my Mac the other day when I realized that I needed to have JAVA_HOME set. Running which java returned /usr/bin/java. This was a symbolic link to the file /System/Library/Frameworks/JavaVM.framework/Commands/java. Eventually I figured out that the path I was looking for was /System/Library/Frameworks/JavaVM.framework/Home.


