// Path: teemo/src/main/java/com/teemo/core/entity/BaseEntity.java
// public abstract class BaseEntity implements Serializable {
// }


import com.alibaba.fastjson.annotation.JSONType;
import com.teemo.core.entity.BaseEntity;
import core.support.repository.EnabledQueryCache;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;

/**
 * Copyright (c) 2016- https://github.com/beiyoufx
 *
 * Licensed under the GPL-3.0
 */
package com.teemo.entity;



/**
 * @author yongjie.teng
 * @date 16-11-21 下午5:54
 * @email yongjie.teng@foxmail.com
 * @package com.teemo.entity
 */
@Entity
@Table(name = "resource")
@Cache(region = "all", usage = CacheConcurrencyStrategy.READ_WRITE)
@EnabledQueryCache
@JSONType(orders = {"id", "resourceKey", "resourceValue", "url", "parentId", "parentIds", "type", "menuIcon", "sequence", "available"})

// Path: teemo/src/main/java/com/teemo/core/entity/BaseEntity.java
// public abstract class BaseEntity implements Serializable {
// }


// Path: teemo/src/main/java/com/teemo/entity/Resource.java
import com.alibaba.fastjson.annotation.JSONType;
import com.teemo.core.entity.BaseEntity;
import core.support.repository.EnabledQueryCache;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;

/**
 * Copyright (c) 2016- https://github.com/beiyoufx
 *
 * Licensed under the GPL-3.0
 */
package com.teemo.entity;



/**
 * @author yongjie.teng
 * @date 16-11-21 下午5:54
 * @email yongjie.teng@foxmail.com
 * @package com.teemo.entity
 */
@Entity
@Table(name = "resource")
@Cache(region = "all", usage = CacheConcurrencyStrategy.READ_WRITE)
@EnabledQueryCache
@JSONType(orders = {"id", "resourceKey", "resourceValue", "url", "parentId", "parentIds", "type", "menuIcon", "sequence", "available"})

public class Resource extends BaseEntity {
