?????????·??????????????????????
???????????? ???????[ 2013/7/19 13:21:56 ] ????????
package com.noyaxe.myapp.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "floor")
public class Floor extends IdEntity {
private Integer floorNum;
private Building building;
@Column(name = "floor_num")
public Integer getFloorNum() {
return floorNum;
}
public void setFloorNum(Integer floorNum) {
this.floorNum = floorNum;
}
@ManyToOne(optional = false)
@JoinColumn(name = "building")
public Building getBuilding() {
return building;
}
public void setBuilding(Building building) {
this.building = building;
}
}
???????????FloorDao??
package com.noyaxe.myapp.repository;
import com.noyaxe.myapp.entity.Floor;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import java.util.List;
public interface FloorDao extends JpaSpecificationExecutor<Floor>?? PagingAndSortingRepository<Floor?? Long> {
public Floor findByBuildingNameAndFloorNum(String building?? Integer floorNum);
public List<Floor> findByBuildingName(String building);
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11