I'm trying to figure out why I'm getting this message at startup:
May 16, 2005 11:50:06 PM net.sf.hibernate.util.ReflectHelper getBulkBean
INFO: reflection optimizer disabled for: com.prosc.test.EmailAddress, CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
May 16, 2005 11:50:06 PM net.sf.hibernate.util.ReflectHelper getBulkBean
INFO: reflection optimizer disabled for: com.prosc.test.PhoneNumber, CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
May 16, 2005 11:50:06 PM net.sf.hibernate.util.ReflectHelper getBulkBean
INFO: reflection optimizer disabled for: com.prosc.test.MailingAddress, CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
May 16, 2005 11:50:06 PM net.sf.hibernate.util.ReflectHelper getBulkBean
INFO: reflection optimizer disabled for: com.prosc.test.Person, CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
May 16, 2005 11:50:06 PM net.sf.hibernate.util.ReflectHelper getBulkBean
INFO: reflection optimizer disabled for: com.prosc.test.Cat, CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
Here is the source code from one of the simplest classes mentioned, EmailAddress. I've stripped out all the custom stuff that I've done in this class except for the barebones stuff, and I'm still getting the same message. Here is the the code, after removing commented lines:
Code:
package com.prosc.test;
public class EmailAddress {
private long id;
private String label;
private String emailAddress;
public EmailAddress() {}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getLabel() {
return label;
}
public void setLabel(String newValue) {
this.label = newValue;
}
public String getEmailAddress() {
return emailAddress;
}
public void setEmailAddress(String newValue) {
this.emailAddress = newValue;
}
}
Here is the Hibernate mapping file for EmailAddress:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping package="com.prosc.test" >
<class name="EmailAddress">
<id name="id" type="long" unsaved-value="0" >
<column name="id" not-null="true"/>
<generator class="native"/>
</id>
<property name="label" />
<property name="emailAddress" />
</class>
</hibernate-mapping>