Enum Singleton

If you consider a singleton for solving a problem, you really should think again if it is the correct solution or if you are coding the equivalent of global variable. If you still want to use the singleton approach, ask your colleagues if this would be a good approach. If they agree, I might have [...]

Posted in: Design, Java by Jens Schauder No Comments

Sun, IBM and Oracle


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

When I first read the then news of IBM considering to buy Sun I was a little worried. What would it mean to my favorite programming language java? IBM is a strong player in the JCP and with Eclipse they made a IDE available that is constantly among the two most used and the three [...]

Posted in: Java, Oracle by Jens Schauder No Comments

Why Hibernate is so much more powerful than JDBC


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

Should I use Hibernate for the next project? How does it compare to JDBC
This question get’s asked a lot. And the first answer is most of the times: That is comparing apples and oranges. And of course that is true. But if you are a little kid apples are round and tasty and so are [...]

Posted in: Datenbank, Java, Softwareentwicklung by Jens Schauder 8 Comments

Annotations und Dependencies


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

Seit mit JDK 1.5 (aka Java2 Version 5 (Kopfschüttel)) Annotations eingeführt wurden, wurden viele XML Dateien durch Annotations ersetzt. Prinzipiell sind Annotations auch eine feine Sache, aber bei der ganzen Begeisterung für die (nicht mehr so ganz) neue Technologie schiesst man leicht über das Ziel hinaus. Falls euch das noch nicht passiert ist, dann ist [...]

Posted in: Java, Softwareentwicklung by Jens Schauder 1 Comment

Swing ist tot, es lebe …?


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

Vor fast zwei Jahren habe ich die Arbeit an einem Swing basierten Projekt begonnen. Die anderen Teammitglieder fragten mich, was ich von der Entscheidung für Swing und gegen Webtechniken hielt. Ich habe ihnen gratuliert. In meiner Erfahrung werden viel zu viele Webanwendungen gebaut. Klar, Webanwendungen haben Vorteile, aber eben nicht nur. Und für viele Dinge [...]

Posted in: Java, Softwareentwicklung by Jens Schauder 4 Comments

Equals ist böse


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

Ich kann mich noch vage daran erinnern, als ich mich 1997 das erste Mal mit Java beschäftigte. Ich probierte mich an meinen ersten .java Dateien und hangelte mich an Java Tutorial entlang. Ziemlich bald stieß ich auf auf die equals Methode. Ich war begeistert. Jede Klasse kann selbst entscheiden, welche Instanzen von ihr als gleich [...]

Posted in: Java, Softwareentwicklung by Jens Schauder No Comments

Hibernate Sessions in Two Tier Rich Client Applications


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

One of the most populare articles in this blog so far ist the one about, well: Hibernate Sessions in Two Tier Rich Client Applications. Although the original article is writen in german I keep refering to this article, even in english communities. Therefore I decided to break my habit of writing articles in german only [...]

Posted in: Java, Softwareentwicklung by Jens Schauder 11 Comments

Ich habe das Rad erfunden


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

Yup, ich hab mittlerweile auch mitbekommen, dass das ein anderer schon vor mir getan hat. Ok, es geht nicht um das Rad, es geht um ein Framework, wie ich es vor einiger Zeit skizziert habe. Ein solches Framework habe ich in den vergangenen Monaten mit einem Kunden meines Arbeitgebers implementiert. Die prinzipielle Idee ist [...]

Posted in: Java, Softwareentwicklung by Jens Schauder No Comments

Hibernate Naming Strategie für Oracle die zweite


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

Vor einiger Zeit habe ich eine einfache Naming Strategie vorgestellt, die sicherstellt, dass die generierten Namen sich an die etwas geizigen Beschränkungen von Oracle hält. Ich habe die Starategie noch einmal ein wenig überarbeitet. Sie verteilt jetzt großzügiger Underscores, so dass sie mehr Stellen hat, an denen sie einen Namen kürzen kann.
Natürlich gilt wieder: Benutzung [...]

Posted in: Java, Oracle by Jens Schauder 2 Comments

Debugging mit Sound und Log4J


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1310

Warning: shuffle() expects parameter 1 to be array, null given in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1311

Warning: Invalid argument supplied for foreach() in /home/www/web338/html/WordPress/wp-content/plugins/simple-tags/inc/client.php on line 1312

Ein Freund von mir erzählte von einiger Zeit von einem interessanten kleinen Feature, das er in einer Entwicklungsumgebung (ich denke auf einem Mac) gefunden hatte. Eine Art Breakpoint, der aber nicht die Ausführung unterbrach, sondern ein einfach einen kurzen Ton produzierte. Konsequenz: Es war sehr einfach zu kontrollieren, ob und wie häufig die entsprechende Codezeile [...]

Posted in: Java, Softwareentwicklung by Jens Schauder No Comments