// Path: src/main/java/de/blackcraze/grb/model/entity/Mate.java
// @Entity
// @Table(name = "MATE")
// public class Mate extends AbstractNamed {
// 
//     private static final long serialVersionUID = 1453233261285704063L;
// 
//     @Column(nullable = false, unique = true)
//     private String discordId;
// 
//     @Column
//     private String language;
// 
//     @Enumerated(EnumType.STRING)
//     @Column
//     private Device device;
// 
//     @OneToMany(mappedBy = "mate", fetch = FetchType.LAZY)
//     @OnDelete(action = OnDeleteAction.CASCADE)
//     private Set<Building> buildings;
// 
//     @OneToMany(mappedBy = "mate", fetch = FetchType.LAZY)
//     @OnDelete(action = OnDeleteAction.CASCADE)
//     private Set<Stock> stocks;
// 
//     public Set<Building> getBuildings() {
//         return buildings;
//     }
// 
//     public Set<Stock> getStocks() {
//         return stocks;
//     }
// 
//     public String getDiscordId() {
//         return discordId;
//     }
// 
//     public void setDiscordId(String discordId) {
//         this.discordId = discordId;
//     }
// 
//     public String getLanguage() {
//         return language;
//     }
// 
//     public void setLanguage(String language) {
//         this.language = language;
//     }
// 
//     public Device getDevice() {
//         return device;
//     }
// 
//     public void setDevice(Device device) {
//         this.device = device;
//     }
// 
// }


import java.sql.Date;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.List;
import de.blackcraze.grb.model.entity.Mate;
import de.blackcraze.grb.model.entity.Stock;
import de.blackcraze.grb.model.entity.StockType;

package de.blackcraze.grb.dao;



public class StockDaoBean extends BaseDaoBean<Stock> implements IStockDao {

    @SuppressWarnings("unchecked")
    @Override

// Path: src/main/java/de/blackcraze/grb/model/entity/Mate.java
// @Entity
// @Table(name = "MATE")
// public class Mate extends AbstractNamed {
// 
//     private static final long serialVersionUID = 1453233261285704063L;
// 
//     @Column(nullable = false, unique = true)
//     private String discordId;
// 
//     @Column
//     private String language;
// 
//     @Enumerated(EnumType.STRING)
//     @Column
//     private Device device;
// 
//     @OneToMany(mappedBy = "mate", fetch = FetchType.LAZY)
//     @OnDelete(action = OnDeleteAction.CASCADE)
//     private Set<Building> buildings;
// 
//     @OneToMany(mappedBy = "mate", fetch = FetchType.LAZY)
//     @OnDelete(action = OnDeleteAction.CASCADE)
//     private Set<Stock> stocks;
// 
//     public Set<Building> getBuildings() {
//         return buildings;
//     }
// 
//     public Set<Stock> getStocks() {
//         return stocks;
//     }
// 
//     public String getDiscordId() {
//         return discordId;
//     }
// 
//     public void setDiscordId(String discordId) {
//         this.discordId = discordId;
//     }
// 
//     public String getLanguage() {
//         return language;
//     }
// 
//     public void setLanguage(String language) {
//         this.language = language;
//     }
// 
//     public Device getDevice() {
//         return device;
//     }
// 
//     public void setDevice(Device device) {
//         this.device = device;
//     }
// 
// }


// Path: src/main/java/de/blackcraze/grb/dao/StockDaoBean.java
import java.sql.Date;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.List;
import de.blackcraze.grb.model.entity.Mate;
import de.blackcraze.grb.model.entity.Stock;
import de.blackcraze.grb.model.entity.StockType;

package de.blackcraze.grb.dao;



public class StockDaoBean extends BaseDaoBean<Stock> implements IStockDao {

    @SuppressWarnings("unchecked")
    @Override

    public List<Stock> findStocksByMate(Mate mate) {
