@Override
    public void createStudent(String matricNum, String name, String password, String email) {
        studentEntity = new StudentEntity();
        String hash = "";
        try {
            hash = encode(password);
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }
        studentEntity.create(matricNum, name, hash, email);

        em.persist(studentEntity);
    }