Look, the model is the next, I reviewed my class and is not a subclass. Something interesting is that my id is Date (I say this because I had some problems to do this with xDoclet, I had to modify the model directly)
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class
name="com.ixe.ods.seguridad.model.SeguFechasInhabiles"
table="segu_fecha_inhabil"
proxy="com.ixe.ods.seguridad.model.SeguFechasInhabiles"
dynamic-update="false"
>
<id
name="id"
column="fecha"
type="java.util.Date"
unsaved-value="any"
>
<generator class="assigned">
</generator>
</id>
<property
name="descripcion"
type="java.lang.String"
update="true"
insert="true"
column="descripcion"
not-null="false"
unique="false"
/>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-SeguFechasInhabiles.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
The Log that I received was the follow:
Code:
<Nov 3, 2003 10:41:48 AM CST> <Info> <Log4JBridge> <000000> <238313 [ExecuteThre
ad: '14' for queue: 'weblogic.kernel.Default'] INFO net.sf.hibernate.impl.Sessi
onFactoryObjectFactory - no JNDI name configured >
Hibernate: SELECT f.descripcion AS descripc2_0_ FROM segu_fecha_inhabil f WHERE
f.fecha NOT IN (SELECT z.fecha FROM segu_sistema_fecha_inhabil z WHERE z.sistema
='TELLER')
<Nov 3, 2003 10:41:48 AM CST> <Warning> <Log4JBridge> <000000> <238750 [ExecuteT
hread: '14' for queue: 'weblogic.kernel.Default'] WARN net.sf.hibernate.util.JD
BCExceptionReporter - SQL Error: 17006, SQLState: null >
<Nov 3, 2003 10:41:48 AM CST> <Error> <Log4JBridge> <000000> <238750 [ExecuteThr
ead: '14' for queue: 'weblogic.kernel.Default'] ERROR net.sf.hibernate.util.JDBC
ExceptionReporter - Invalid column name >
<Nov 3, 2003 10:41:48 AM CST> <Warning> <Log4JBridge> <000000> <238906 [ExecuteT
hread: '14' for queue: 'weblogic.kernel.Default'] WARN net.sf.hibernate.util.JD
BCExceptionReporter - SQL Error: 17006, SQLState: null >
<Nov 3, 2003 10:41:48 AM CST> <Error> <Log4JBridge> <000000> <238922 [ExecuteThr
ead: '14' for queue: 'weblogic.kernel.Default'] ERROR net.sf.hibernate.util.JDBC
ExceptionReporter - Invalid column name >
<Nov 3, 2003 10:41:48 AM CST> <Error> <Log4JBridge> <000000> <238953 [ExecuteThr
ead: '14' for queue: 'weblogic.kernel.Default'] ERROR net.sf.hibernate.util.JDBC
ExceptionReporter - SQLException occurred
java.sql.SQLException: Invalid column name
at oracle.jdbc.dbaccess.DBError.throwSqlException(Ljava.lang.String;Ljav
a.lang.String;I)V(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(ILjava.lang.Object;)V(
DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(I)V(DBError.java:269)
at oracle.jdbc.driver.OracleStatement.get_column_index(Ljava.lang.String
;)I(OracleStatement.java:6190)
at oracle.jdbc.driver.OracleResultSetImpl.findColumn(Ljava.lang.String;)
I(OracleResultSetImpl.java:1534)
at oracle.jdbc.driver.OracleResultSet.getTimestamp(Ljava.lang.String;)Lj
ava.sql.Timestamp;(OracleResultSet.java:1625)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImp
l.getTimestamp(Ljava.lang.String;)Ljava.sql.Timestamp;(Unknown Source)
at net.sf.hibernate.type.TimestampType.get(Ljava.sql.ResultSet;Ljava.lan
g.String;)Ljava.lang.Object;(TimestampType.java:17)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;Lj
ava.lang.String;)Ljava.lang.Object;(NullableType.java:61)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;[L
java.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)
Ljava.lang.Object;(NullableType.java:52)
at net.sf.hibernate.loader.Loader.getKeyFromResultSet(ILnet.sf.hibernate
.persister.Loadable;Ljava.io.Serializable;Ljava.sql.ResultSet;Lnet.sf.hibernate.
engine.SessionImplementor;)Lnet.sf.hibernate.engine.Key;(Loader.java:286)
at net.sf.hibernate.loader.Loader.doResultSet(Lnet.sf.hibernate.engine.S
essionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Lja
va.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:180)
at net.sf.hibernate.loader.Loader.doFind(Lnet.sf.hibernate.engine.Sessio
nImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io
.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:111)
at net.sf.hibernate.loader.Loader.find(Lnet.sf.hibernate.engine.SessionI
mplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.jav
a:731)
at net.sf.hibernate.loader.SQLLoader.list(Lnet.sf.hibernate.engine.Query
Parameters;Lnet.sf.hibernate.engine.SessionImplementor;)Ljava.util.List;(SQLLoad
er.java:68)
at net.sf.hibernate.impl.SessionImpl.findBySQL(Ljava.lang.String;[Ljava.
lang.String;[Ljava.lang.Class;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.ut
il.List;(SessionImpl.java:3695)
at net.sf.hibernate.impl.SQLQueryImpl.list()Ljava.util.List;(SQLQueryImp
l.java:46)
at com.ixe.ods.seguridad.model.SeguFechasInhabiles.findTest(Lnet.sf.hibe
rnate.Session;)V(SeguFechasInhabiles.java:124)
at com.ixe.ods.bup.pages.Tests.fechasInhabiles(Lorg.apache.tapestry.IReq
uestCycle;)V(Tests.java:92)
at COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[L
java.lang.Object;)Ljava.lang.Object;(Native Method)
at COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Lja
va.lang.Object;)Ljava.lang.Object;(Unknown Source)
at COM.jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Obje
ct;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;
I)Ljava.lang.Object;(Unknown Source)
at org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(Ljava.lan
g.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)V(ListenerMap.java:301)
at org.apache.tapestry.listener.ListenerMap.access$100(Ljava.lang.Object
;Ljava.lang.reflect.Method;[Ljava.lang.Object;)V(ListenerMap.java:87)
at org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Lor
g.apache.tapestry.IRequestCycle;)V(ListenerMap.java:141)
at org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrig
gered(Lorg.apache.tapestry.IComponent;Lorg.apache.tapestry.IRequestCycle;)V(List
enerMap.java:146)
at org.apache.tapestry.form.ImageSubmit.renderComponent(Lorg.apache.tape
stry.IMarkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(ImageSubmit.java:151)
at org.apache.tapestry.AbstractComponent.render(Lorg.apache.tapestry.IMa
rkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(AbstractComponent.java:880)
at org.apache.tapestry.AbstractComponent.renderBody(Lorg.apache.tapestry
.IMarkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(AbstractComponent.java:657)
at org.apache.tapestry.form.Form.renderComponent(Lorg.apache.tapestry.IM
arkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(Form.java:397)
at org.apache.tapestry.AbstractComponent.render(Lorg.apache.tapestry.IMa
rkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(AbstractComponent.java:880)
>
<Nov 3, 2003 10:41:49 AM CST> <Info> <Log4JBridge> <000000> <239313 [ExecuteThre
ad: '14' for queue: 'weblogic.kernel.Default'] INFO com.legosoft.tapestry.hiber
nate.HibernateMonitor - serviceException: org.apache.tapestry.ApplicationRuntim
eException: RUNTIME >
<Nov 3, 2003 10:41:49 AM CST> <Info> <Log4JBridge> <000000> <239375 [ExecuteThre
ad: '14' for queue: 'weblogic.kernel.Default'] INFO com.legosoft.tapestry.hiber
nate.HibernateMonitor - rollbackClose >
<Nov 3, 2003 10:41:49 AM CST> <Info> <Log4JBridge> <000000> <239406 [ExecuteThre
ad: '14' for queue: 'weblogic.kernel.Default'] INFO org.apache.tapestry.engine.
AbstractEngine - Uncaught exception
org.apache.tapestry.ApplicationRuntimeException: RUNTIME
at com.ixe.ods.seguridad.model.SeguFechasInhabiles.findTest(Lnet.sf.hibe
rnate.Session;)V(SeguFechasInhabiles.java:127)
at com.ixe.ods.bup.pages.Tests.fechasInhabiles(Lorg.apache.tapestry.IReq
uestCycle;)V(Tests.java:92)
at COM.jrockit.reflect.NativeMethodInvoker.invoke0(ILjava.lang.Object;[L
java.lang.Object;)Ljava.lang.Object;(Native Method)
at COM.jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Lja
va.lang.Object;)Ljava.lang.Object;(Unknown Source)
at COM.jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Obje
ct;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;
I)Ljava.lang.Object;(Unknown Source)
at org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(Ljava.lan
g.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)V(ListenerMap.java:301)
at org.apache.tapestry.listener.ListenerMap.access$100(Ljava.lang.Object
;Ljava.lang.reflect.Method;[Ljava.lang.Object;)V(ListenerMap.java:87)
at org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(Lor
g.apache.tapestry.IRequestCycle;)V(ListenerMap.java:141)
at org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTrig
gered(Lorg.apache.tapestry.IComponent;Lorg.apache.tapestry.IRequestCycle;)V(List
enerMap.java:146)
at org.apache.tapestry.form.ImageSubmit.renderComponent(Lorg.apache.tape
stry.IMarkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(ImageSubmit.java:151)
at org.apache.tapestry.AbstractComponent.render(Lorg.apache.tapestry.IMa
rkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(AbstractComponent.java:880)
at org.apache.tapestry.AbstractComponent.renderBody(Lorg.apache.tapestry
.IMarkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(AbstractComponent.java:657)
at org.apache.tapestry.form.Form.renderComponent(Lorg.apache.tapestry.IM
arkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(Form.java:397)
at org.apache.tapestry.AbstractComponent.render(Lorg.apache.tapestry.IMa
rkupWriter;Lorg.apache.tapestry.IRequestCycle;)V(AbstractComponent.java:880)
at org.apache.tapestry.form.Form.rewind(Lorg.apache.tapestry.IMarkupWrit
er;Lorg.apache.tapestry.IRequestCycle;)V(Form.java:603)
at org.apache.tapestry.engine.RequestCycle.rewindForm(Lorg.apache.tapest
ry.IForm;Ljava.lang.String;)V(RequestCycle.java:475)
at org.apache.tapestry.form.Form.trigger(Lorg.apache.tapestry.IRequestCy
cle;)V(Form.java:617)
at org.apache.tapestry.engine.DirectService.service(Lorg.apache.tapestry
.engine.IEngineServiceView;Lorg.apache.tapestry.IRequestCycle;Lorg.apache.tapest
ry.request.ResponseOutputStream;)V(DirectService.java:210)
at org.apache.tapestry.engine.AbstractEngine.service(Lorg.apache.tapestr
y.request.RequestContext;)Z(AbstractEngine.java:912)
at org.apache.tapestry.ApplicationServlet.doService(Ljavax.servlet.http.
HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ApplicationServlet
.java:238)
at org.apache.tapestry.ApplicationServlet.doPost(Ljavax.servlet.http.Htt
pServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ApplicationServlet.ja
va:367)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServle
tRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;
Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
()Ljava.lang.Object;(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.Filte
rChainImpl;)V(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servle
t.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run()Ljava.lang.Object;(WebAppServletContext.java:6291)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.se
curity.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Objec
t;(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.ac
l.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSub
ject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:97
)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogi
c.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponse
Impl;)V(WebAppServletContext.java:3575)
at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel
.ExecuteThread;)V(ServletRequestImpl.java:2573)
>
<Nov 3, 2003 10:41:53 AM CST> <Alert> <Log Management> <BEA-170017> <The log fil
e .\mwserver\mwserver.log will be rotated. Reopen the log file if tailing has st
opped. This can happen on some platforms like Windows.>
<Nov 3, 2003 10:41:53 AM CST> <Alert> <Log Management> <BEA-170018> <The log fil
e has been rotated to mwserver.log01533. Log messages will continue to be logged
in .\mwserver\mwserver.log.>
<Nov 3, 2003 10:42:00 AM CST> <Info> <Log4JBridge> <000000> <250375 [ExecuteThre
ad: '14' for queue: 'weblogic.kernel.Default'] INFO org.apache.tapestry.pageloa
d.PageLoader - Loaded page org.apache.tapestry.pages.Exception@268f[framework:E
xception] with 14 components (maximum depth 3) >
<Nov 3, 2003 10:42:01 AM CST> <Alert> <Log Management> <BEA-170017> <The log fil
e .\mwserver\mwserver.log will be rotated. Reopen the log file if tailing has st
opped. This can happen on some platforms like Windows.>
<Nov 3, 2003 10:42:01 AM CST> <Alert> <Log Management> <BEA-170018> <The log fil
e has been rotated to mwserver.log01534. Log messages will continue to be logged
in .\mwserver\mwserver.log.>
<Nov 3, 2003 10:42:01 AM CST> <Info> <Log4JBridge> <000000> <251797 [ExecuteThre
ad: '14' for queue: 'weblogic.kernel.Default'] INFO com.legosoft.tapestry.hiber
nate.HibernateMonitor - serviceEnd: direct >
<Nov 3, 2003 10:42:01 AM CST> <Info> <Log4JBridge> <000000> <251797 [ExecuteThre
ad: '14' for queue: 'weblogic.kernel.Default'] INFO com.legosoft.tapestry.hiber
nate.HibernateMonitor - commitClose >
<Nov 3, 2003 10:42:01 AM CST> <Info> <Log4JBridge> <000000> <251828 [ExecuteThre
ad: '14' for queue: 'weblogic.kernel.Default'] INFO org.apache.tapestry.engine.
AbstractEngine - End service >
<Nov 3, 2003 10:42:01 AM CST> <Info> <Log4JBridge> <000000> <251844 [ExecuteThre
ad: '13' for queue: 'weblogic.kernel.Default'] INFO org.apache.tapestry.engine.
AbstractEngine - Begin service /securitytest/app >
<Nov 3, 2003 10:42:01 AM CST> <Info> <Log4JBridge> <000000> <251906 [ExecuteThre
ad: '13' for queue: 'weblogic.kernel.Default'] INFO com.legosoft.tapestry.hiber
nate.HibernateMonitor - serviceEnd: asset >
<Nov 3, 2003 10:42:01 AM CST> <Info> <Log4JBridge> <000000> <251922 [ExecuteThre
ad: '13' for queue: 'weblogic.kernel.Default'] INFO com.legosoft.tapestry.hiber
nate.HibernateMonitor - commitClose >
<Nov 3, 2003 10:42:01 AM CST> <Info> <Log4JBridge> <000000> <251922 [ExecuteThre
ad: '13' for queue: 'weblogic.kernel.Default'] INFO org.apache.tapestry.engine.
AbstractEngine - End service >
Thanks in advance