For non standard data types please consult:
http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-types-custom
david b <[EMAIL PROTECTED]> wrote: Lutz,
Made some more modifications:
Changed Login:
package com.entercite.finance.model;
import java.util.*;
import com.entercite.common.util.DateIII;
/**
*
*/
public class Login {
private Integer id = new Integer(0);
private Integer userId = new Integer(0);
private String userName = "";
private String password = "";
private Integer permissionType = new Integer(0);
private DateIII insertDate = new DateIII();
private DateIII modifyDate = new DateIII();
public void setId(Integer loginId){ this.id = loginId; }
public Integer getId(){return this.id;}
public void setUserId(Integer userId){ this.userId = userId; }
public Integer getUserId(){return this.userId;}
public void setUserName(String userName){ this.userName = userName;}
public String getUserName(){return this.userName;}
public void setPassword(String password){this.password = password;}
public String getPassword(){return this.password;}
public void setPermissionType(Integer permissionType){
this.permissionType = permissionType;
}
public Integer getPermissionType(){return this.permissionType;}
public void setInsertDate(DateIII insertDate){this.insertDate = insertDate;}
public DateIII getInsertDate(){return this.insertDate;}
public void setModifyDate(){this.modifyDate = modifyDate;}
public DateIII getModifyDate(){return this.modifyDate;}
}
and Login.hbm.xml
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
package="com.entercite.finance.model">
The new error:
Unable to invoke method doLogin on [EMAIL PROTECTED]: Could not find a setter
for property modifyDate in class com.entercite.finance.model.Login
org.hibernate.PropertyNotFoundException
Could not find a setter for property modifyDate in class
com.entercite.finance.model.Login
messages: [Ljava.lang.String;@4a5c78
throwableCount: 1
throwables: [Ljava.lang.Throwable;@1fcf790
Stack Trace:
*
org.hibernate.property.BasicPropertyAccessor.createSetter(BasicPropertyAccessor.java:156)
*
org.hibernate.property.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:150)
* org.hibernate.mapping.Property.getSetter(Property.java:245)
*
org.hibernate.tuple.PojoTuplizer.buildPropertySetter(PojoTuplizer.java:241)
* org.hibernate.tuple.AbstractTuplizer.(AbstractTuplizer.java:74)
* org.hibernate.tuple.PojoTuplizer.(PojoTuplizer.java:54)
* org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:47)
* org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:217)
*
org.hibernate.persister.entity.BasicEntityPersister.(BasicEntityPersister.java:400)
*
org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:104)
*
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
* org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:207)
*
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055)
*
com.entercite.finance.persistence.HibernateFactory.buildSessionFactory(HibernateFactory.java:26)
* com.entercite.finance.persistence.abstrt.AbstractDao.(AbstractDao.java:21)
* com.entercite.finance.persistence.LoginDaoImpl.(LoginDaoImpl.java:12)
*
com.entercite.finance.model.abstrt.LoginComponent.isValidLogin(LoginComponent.java:52)
*
com.entercite.finance.model.abstrt.LoginComponent.doLogin(LoginComponent.java:35)
--
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Konstantin Ignatyev
PS: If this is a typical day on planet earth, humans will add fifteen million
tons of carbon to the atmosphere, destroy 115 square miles of tropical
rainforest, create seventy-two miles of desert, eliminate between forty to one
hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of
CFCs to the stratosphere, and increase their population by 263,000
Bowers, C.A. The Culture of Denial: Why the Environmental Movement Needs a
Strategy for Reforming Universities and Public Schools. New York: State
University of New York Press, 1997: (4) (5) (p.206)