Blogs

JPA Tutorial: Maps and Composite Keys

I wrestled with JPA again today, and came away with some hard earned knowledge, so I want to put this one up on the interwebs.

I am working with a Database that was created by, effectively, another product. It has a relationship of Contact -<> ContactItem where contact item has a PK of [ContactID, TypeID]. What I really wanted was for Contact to have a map on it of ContactItems index by the Integer typeID.

First off, Composite keys are a PITA in JPA anyway, and doing this with a Map collection type is even worse. So lets go over the important parts:

Android Developer Contest Round 1

Well, the app that I submitted didn't win, but it really was a shell of the app I wanted to submit - which didn't make it to fruition based on a host of factors (including being in the middle of writing a book). Maybe it will be done for ADC II . . . . maybe. The one I did submit, WeatherReporter, can be downloaded (for anyone interested) via the Unlocking Android source code link (along with a bunch of other useful examples actually, and the source is completely free).

WeatherReporter

Mike and Holly go sky diving

The kid turned 30 the other day, happy b-day Mike.

Best Buys Salespeople are "Dumb as a Bucket of Rocks"

I bought an Alpine CDA-9884 from Best Buys the other day for around $200. When I was looking at receivers I asked the salesperson what was the better makes they had. He immediately said Alpine, and proceeded to tell me of the new feature they had called Imprint which he explained contained a parametric equalizer. He proceeded to demonstrate the feature and I was able to see him adjust multiple band-pass points in 100 Hz increments. I recall thinking that this would be a nice feature as it would allow a degree of application of Fletcher-Munson correction for lower listening levels.

Unison - file synchronization tool

Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.

Full Story

How to Install C and C++ Compilers in Ubuntu and testing first C and C++ Program

If you are a developer you need C and C++ Compiler for your development work on your ubuntu system this tutorial will explain howto install C and C++ Compilers in Ubuntu with program examples.In ubuntu you can install the build-essential for C and C++ compilers.

Full Story

JavaOne 2k8

Here is my calendar for anyone who cares:


Syndicate content