Skip to content

Commit

Permalink
Merge pull request #88 from CSID-DGU/back
Browse files Browse the repository at this point in the history
Feat: join
  • Loading branch information
proysm authored Dec 17, 2023
2 parents 9b50c14 + 6a39f2a commit 0564142
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.example.demo.domain.Project;
import com.example.demo.domain.User;
import com.example.demo.repository.ApplyRepository;
import com.example.demo.repository.UserJPARepository;
import com.example.demo.repository.UserRepository;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
Expand All @@ -16,6 +17,7 @@
@Service
public class UserService {
UserRepository user_rp;
UserJPARepository userJPARepository;

ApplyRepository apply_rp;
public UserService(@Qualifier("userRepository")UserRepository user_rp,
Expand All @@ -27,8 +29,7 @@ public UserService(@Qualifier("userRepository")UserRepository user_rp,
}

public User join(User user){
User result_user = user_rp.save(user);
return result_user;
return userJPARepository.save(user);
}
public int duplicationCheckId(String id){return user_rp.duplicationCheckId(id);}

Expand Down

0 comments on commit 0564142

Please sign in to comment.