Feed on
Posts
Comments

Tag Archive 'Java'

A year with Java

Last year at this time I took a Java programming class as a refresher as I hadn’t done much with Java since my days as an undergrad (and a few short programs in grad school). After primarily using Perl for the last 7 years, this was a big switch. The difficulty with Perl is that [...]

Read Full Post »

Generating xmlbeans from xml

This took me a while to figure out and I had to use many different sources so I figured I’d put the whole process here. The goal was to create xmlbeans for an API call that returned xml. I did not have an .xsd file to go by however, but xmlbeans comes with a couple [...]

Read Full Post »

This took me a few hours to figure out so I’m logging this here for my own sanity. If you have a bidirectional many-to-many mapping in Hibernate with a join table, the join table is only updated when the noninverse side of the mapping is inserted/updated. In the example below, the join table (pane_specs) is [...]

Read Full Post »

Comparison of Java Framworks from a Java Noob

A coworker and I were tasked with rewriting an internal application to manage our company’s workflow. We both have a background in Perl and not much Java, making us the perfect candidates to prototype potential frameworks. The following is what we came up with based on our (few) requirements:

MVC framework
view layer must allow us to [...]

Read Full Post »

Random collection of notes from Sun Java course

These are some notes I scribbled down during Sun’s “Java Programming” class. Having programmed in Perl the last 7 years, this is what I wrote down as “noteworthy.”

Everything in Java is an object except primitive types
All objects are references in memory
A ‘foreach’ loop in java looks like this:

for (Car y: x) {
y.speed = 100;
}

Inherited objects [...]

Read Full Post »