All Downloads are FREE. Search and download functionalities are using the official Maven repository.

test.entity.Article Maven / Gradle / Ivy

Go to download

This is a lightweight complete ORM framework, which encapsulates a large number of commonly used SQL and implements multi-table Association query and paging query.

There is a newer version: 2.2.2
Show newest version
package test.entity;

import org.jleopard.core.EnumPrimary;
import org.jleopard.core.annotation.Column;
import org.jleopard.core.annotation.Table;

/**
 * Copyright (c) 2018, Chen_9g 陈刚 ([email protected]).
 * 

* DateTime 2018/4/18 *

* A novice on the road, please give me a suggestion. * 众里寻他千百度,蓦然回首,那人却在,灯火阑珊处。 * Find a way for success and not make excuses for failure. */ @Table("article") public class Article { @Column(isPrimary = EnumPrimary.AUTOINCREMENT) private int id; @Column(allowNull = true) private String name; @Column(value = "user_id",relation = "user_id") private User user; public Article() { } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } @Override public String toString() { return "Article{" + "id=" + id + ", name='" + name + '\'' + ", user=" + user + '}'; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy