Report of Webforms evening

Maurik-Jan Veenman

The Knowledge Centre Designer & Forms has had a meeting on the 30th of august 2004. The theme of this evening was Webforms. First there was a short overview presentation by Maurik-Jan. Then Harm, Lucas and Anton did thorough presentations about respectively Webutil, Architecture and migration. After the presentations there […]

HTML Buttons with an image

Leon van Tegelen 5

In HTML it is possible to define an accesskey for a control. For example if you want to have a button which the user can click using the hot-key alt-p., you can do this with the following HTML <input type=”button” value=”push me” accesskey=”p” onclick=”alert(‘clicked’)”/> It is not possible to underline […]

Hibernate + Middlegen Roundtrip Development applied

admin 8

In Hibernate Roundtrip Development, a scenario is presented to generate (Hibernate) POJO objects from a (legacy) database, also known as a bottom-up approach: We applied this strategy to a MSSQL server database with a jTDS JDBC driver. We discuss the steps involved, analyse the results produced, and stipulate a pending […]

Easy toString/equals/hashcode

Jasper 6

A simple, standard and reusable way of creating toString, equals and hashcode methods in your classes/beans can be found in the jakarta commons.lang package: import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; public class BaseBean { public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); } public boolean equals(Object o) { return […]

New Oracle JDBC driver

Jasper 1

After getting a weird NullPointerException using Transaction.commit() in Hibernate during an insert (eventually calling PreparedStatement.clearParameters() which was the source of the exception), it turned out that the JDBC driver in classes12.jar is outdated, and will not work on JDK1.4 and an Oracle 10g database. Download the new drivers here to […]

Hibernate kickstart

Jasper 4

A quick’n dirty tutorial-by-example for Hibernate: (Using one table, an Oracle9+ database and Hibernate2) 1) download the Hibernate distribution 2) put these jarfiles in /WEB-INF/lib: hibernate2.jar (hibernate core) cglib-full-2.0.2.jar (runtime class-enhancing) dom4j-1.4.jar (xml reading) ehcache-0.9.jar (objectcache) c3p0- (connectionpool) jta.jar (transactions)

JDBExplorer: a test-drive

Alex Nuijten 6

Even though I started a journey into the realms of Open Source software available for Oracle , I’m taking a small detour now. JDBExplorer was suggested to me via a comment on Oracle Open Source: TOra (toolkit for Oracle). As promised I have taken a look at it and now […]

Use JAX-B or Castor for document-style encoding?

admin 7

For my Open Source project, I want to expose a stateless session bean (SLSB) as web service using JBoss 3.2 and Axis 1.1. Now I’m wondering whether to use JAX-B or Castor for my document-style encoding, since the information I found in “Create Web services using Apache Axis and Castor” […]

Oracle Open Source : FoReDoclet

Alex Nuijten 26

Everybody knows it. Documentation is essential. Most people hate two things about it. The first one is to create it, the second to read it. The Java community has JavaDoc. This takes care of both objections. Generate the documentation so you don’t have to write it. You still have to […]