Skip to main content

Lance Andersen

Lance is a Principal Member of Technical Staff at Oracle Corporation. He is also the JDBC specification lead as well as the Java EE technical lead for Java Partner Engineering . Prior to joining Sun in September 2000, Lance worked at Sybase as a senior manager and staff engineer within Product Support Engineering. When he is not burning the midnight oil for Sun, Lance teaches tennis. You can check out his tennis website for more info.


lancea's blog

test blog 3-16

Posted by lancea on March 16, 2011 at 9:14 AM PDT

testing ecto to the new

Using Bean Validation with EclipseLink in a Java SE Environment

Posted by lancea on May 6, 2010 at 10:31 AM PDT

The Bean Validation specification went final around the same time that the Java EE 6 specifications went final. The Java Persistence 2.0 specification allows for Managed classes (entities, mapped superclasses and embeddable classes) to be configured with Bean Validation constraints.

Generating the JPA 2.0 Static MetaModel classes using Eclipselink 2.0 and Netbeans 6.8 for your Entity Classes

Posted by lancea on December 15, 2009 at 1:11 PM PST

Eclipselink 2.0 includes an annotation processor for generating the static metamodel classes from your Entity classes for use with the Criteria API which is one of the new features in JPA 2.0.

Here is an example of generating the metamodel classes from the command line using the Eclipselink annotation processor:

Introducing the DataSourceDefinition Annotation

Posted by lancea on December 10, 2009 at 10:52 PM PST

One of the many cool new features in Java EE 6, is support for the DataSourceDefinition annotation.

The DataSourceDefinition annotation provides a way to define a DataSource and register it with JNDI. The annotation provided annotation elements for the commonly used DataSource properties. Additional standard and vendor specific properties may also be specified.

Getting started with Mercurial and OpenJDK on Solaris

Posted by lancea on April 24, 2009 at 7:34 AM PDT

A gentle guide to getting started with OpenJDK and Mercurial on Solaris

Technorati Tags: ,

Developing Database Applications Using MySQL Connector/C++

Posted by lancea on April 15, 2009 at 12:10 PM PDT

Giri, has done a very nice job creating a tutorial on using MySQL Connector/C++.

This Connector is modeled after JDBC making it very easy to access MySQL using C++.

MySQL 5.1 is out the door

Posted by lancea on December 8, 2008 at 10:14 AM PST

MySQL 5.1 and MySQL 5.1 Connector/J 5.1 have been officially released. Connector/J 5.1 adds support for JDBC 4.0. You can download Connector/J and find out additional info regarding JDBC 4.0 support here.

Specifying your own Collator for Apache Derby/Java DB

Posted by lancea on December 5, 2008 at 11:50 AM PST

Check out Knut Anders Hatlen's blog on how to specify your own collator allowing you to have more control over the ordering of data in Apache Derby and Java DB.

MySQL Connector/C++ 1.0.1 Alpha Released offering a JDBC API for MySQL C++ developers

Posted by lancea on December 4, 2008 at 3:38 AM PST

The MySQL Connector/C++ Connector project has successfully reached its first major milestone by releasing its Alpha version.

The Connector provides a C++ implementation modeled after JDBC. This allows developers who have worked with JDBC to quickly take advantage of this Connector minimizing the learning curve.

Moving Tomcat Toplink Apps to Glassfish v3 Prelude

Posted by lancea on November 6, 2008 at 3:45 AM PST

With Glassfish V3 and Netbeans 6.5, it is easy to move applications which run on Tomcat using Toplink/EclipseLink to Glassfish v3 Prelude.