Skip to content
Snippets Groups Projects
UserCore.java 537 B
Newer Older
thtamagnau's avatar
thtamagnau committed
package com.uca.core;

import com.uca.core.*;
import com.uca.dao.*;
import com.uca.entity.*;
import java.util.*;
thtamagnau's avatar
thtamagnau committed

Boris's avatar
Boris committed

public class UserCore extends _DefaultCore<UserEntity> {
thtamagnau's avatar
thtamagnau committed

    public static final UserCore Instance = new UserCore();
    private UserCore()
    {
        super(new UserDAO());
thtamagnau's avatar
thtamagnau committed
    }

    public UserEntity create(String firstName, String lastName) {
        UserEntity entity = new UserEntity();
        entity.setFirstName(firstName);
        entity.setLastName(lastName);
        return dao.create(entity);
    }
thtamagnau's avatar
thtamagnau committed
}