intellij spring-aspectJ 编译错误 ConfigurableDeserializationSupport.readResolve()

louisjiang 2012-05-09 11:24:00

The type com.louis.domain.DomainObject must implement the inherited abstract method org.springframework.beans.factory.aspectj.AbstractInterfaceDrivenDependencyInjectionAspect$ConfigurableDeserializationSupport.readResolve()

spring-aspectJ 版本3.0.5
aspectjweaver 版本1.6.11
编译出现上面的错误

package com.louis.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;

import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;

import com.louis.annotation.Json;
import com.louis.dao.GeneralDao;
import com.louis.util.JodaUtil;
import org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect;

/**
* <p>
* DomainObject
* </p>
*
* @author
* @DateTime Jul 26, 2011 9:10:03 AM
* @version 1.0.0
*/

@MappedSuperclass
@Json(transientField = false, nullField = false)
@Configurable(autowire = Autowire.BY_NAME)
public class DomainObject implements Serializable{

private static final long serialVersionUID = 3531893584644895799L;

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;

@Version
private int version;
@Column(name = "createtime", columnDefinition = "datetime")
@Type(type = "org.joda.time.contrib.hibernate.PersistentDateTime")
private DateTime createTime = JodaUtil.now();

@Column(name = "updatetime", columnDefinition = "datetime")
@Type(type = "org.joda.time.contrib.hibernate.PersistentDateTime")
private DateTime updateTime;

private transient GeneralDao generalDao;

public DomainObject() {
}

public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}

public int getVersion() {
return version;
}

public void setVersion(int version) {
this.version = version;
}

public DateTime getCreateTime() {
return createTime;
}

public void setCreateTime(DateTime createTime) {
this.createTime = createTime;
}

public DateTime getUpdateTime() {
return updateTime;
}

public void setUpdateTime(DateTime updateTime) {
this.updateTime = updateTime;
}

/**
* @return the generalDao
*/
public GeneralDao getGeneralDao() {
return this.generalDao;
}

/**
* @param generalDao
* the generalDao to set
*/
@Autowired(required = true)
public void setGeneralDao(GeneralDao generalDao) {
this.generalDao = generalDao;
}

@Override
public String toString() {
return "DomainObject [createTime=" + createTime + ", id=" + id + ", updateTime=" + updateTime + ", version=" + version + "]";
}

@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (this.getClass() != obj.getClass()) {
return false;
}
if (this == obj) {
return true;
}
DomainObject that = (DomainObject) obj;
return this.getId() == that.getId();
}

@Override
public int hashCode() {
return getId();
}
}

...全文
83 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
louisjiang 2012-05-11
  • 打赏
  • 举报
回复
日额,都没人知道啊
louisjiang 2012-05-09
  • 打赏
  • 举报
回复
来人啊
louisjiang 2012-05-09
  • 打赏
  • 举报
回复
大侠们,帮下忙啊

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧