<commit_before>package ro.uvt.controller.beans;

import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import ro.uvt.entity.Flight;
import ro.uvt.entity.dao.Active;

/**
 *
 * @author Anastasia
 */
@Stateless
public class FlightBean {
    
    @Inject
    private Active dao;
    
    private final Class<Flight> TYPE = Flight.class;
    
    public void create(Flight flight){
        dao.create(flight);
    }
    
    public void update(Flight flight){
        dao.update(flight);
    }
    
    public void remove(Flight flight){
        dao.remove(flight);
    }
    
    public void removeById(long id){
        dao.removeById(TYPE, id);
    }
    
    public List<Flight> findAll(){<commit_msg>fixed FlightBean<commit_after>package ro.uvt.controller.beans;

import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import ro.uvt.entity.Flight;
import ro.uvt.entity.dao.Active;
import ro.uvt.entity.dao.DAOInterface;

/**
 *
 * @author Anastasia
 */
@Stateless
public class FlightBean {
    
    @Inject
    private DAOInterface dao;
    
    private final Class<Flight> TYPE = Flight.class;
    
    public void create(Flight flight){
        dao.create(flight);
    }
    
    public void update(Flight flight){
        dao.update(flight);
    }
    
    public void remove(Flight flight){
        dao.remove(flight);
    }
    
    public void removeById(long id){
        dao.removeById(TYPE, id);
    }
    
    public List<Flight> findAll(){
{'fraction_non_alphanumeric': 0.11, 'fraction_numerical': 0.0, 'mean_word_length': 2.6256038647342996, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '682148', 'n_tokens_mistral': 498, 'n_tokens_neox': 498, 'n_words': 104}