Skip to content

Commit

Permalink
style : 주석 확인용
Browse files Browse the repository at this point in the history
  • Loading branch information
ehBeak committed Dec 5, 2023
1 parent ffcd10f commit f417312
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ private HouseHoldJpaEntity getHouseHoldJpaEntityOfUser(Household household) {
private Household getHouseHoldOfUserJpaEntity(HouseHoldJpaEntity houseHoldJpaEntity) {

if (houseHoldJpaEntity == null || houseHoldJpaEntity instanceof HibernateProxy) {
System.out.println("hello1");
return null;
}else {
return householdMapper.mapToDomainEntity(houseHoldJpaEntity);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public User findUserWithHousehold(String userEmail) {

UserJpaEntity userJpaEntity = userQueryRepository.findUserJpaEntityWithHouseholdByEmail(userEmail);

System.out.println(
"userJpaEntity.getHouseHoldJpaEntity().getHouseholdId() = " + userJpaEntity.getHouseHoldJpaEntity()
.getHouseholdId());
return userMapper.mapToDomainEntity(userJpaEntity);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.connect.accountApp.domain.user.application.service;

import com.connect.accountApp.domain.household.application.port.in.GetHouseholdUseCase;
import com.connect.accountApp.domain.household.application.port.out.GetHouseholdPort;
import com.connect.accountApp.domain.user.application.port.in.GetUserAccountUseCase;
import com.connect.accountApp.domain.user.application.port.out.FindHouseholdUserListPort;
import com.connect.accountApp.domain.user.application.port.out.GetUserPort;
Expand All @@ -25,12 +27,15 @@ public User getUserAccount(String userEmail) {
public List<User> getMembersAccount(String userEmail) {
System.out.println("userEmail = " + userEmail);
User user = getUserPort.findUserWithHousehold(userEmail);
System.out.println("user = " + user.getUserId());
System.out.println("user = " + user.getUserAccount());
System.out.println("user = " + user.getUserNickname());
System.out.println("user = " + user.getHousehold());

System.out.println("user.getHousehold()1 = " + user.getHousehold());
List<User> householdMembers = findHouseholdUserListPort.findHouseholdMembers(
user.getHousehold().getHouseholdId());
// List<User> householdMembers = findHouseholdUserListPort.findHouseholdMembers();

System.out.println("householdMembers.size() = " + householdMembers.size());
// System.out.println("householdMembers.size() = " + householdMembers.size());
return findHouseholdUserListPort.findHouseholdMembers(user.getHousehold().getHouseholdId());
}
}

0 comments on commit f417312

Please sign in to comment.