Skip to content

Commit

Permalink
5Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Marija26 committed Sep 25, 2018
1 parent db0a323 commit 51a6bc2
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,27 @@ public void setPosition(String position) {
}

//
// @Override
// public boolean equals(Object o) {
// if (this == o) return true;
// if (o == null || getClass() != o.getClass()) return false;
// User user = (User) o;
// return Objects.equals(name, user.name) &&
// Objects.equals(lastName, user.lastName) &&
// Objects.equals(position, user.position);
// }
//
// @Override
// public int hashCode() {
// return Objects.hash(name, lastName, position);
// }
//
// @Override
// public String toString() {
// return "User{" +
// "name='" + name + '\'' +
// ", lastName='" + lastName + '\'' +
// ", position='" + position + '\'' +
// '}';
// }
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
User user = (User) o;
return Objects.equals(name, user.name) &&
Objects.equals(lastName, user.lastName) &&
Objects.equals(position, user.position);
}

@Override
public int hashCode() {
return Objects.hash(name, lastName, position);
}

@Override
public String toString() {
return "User{" +
"name='" + name + '\'' +
", lastName='" + lastName + '\'' +
", position='" + position + '\'' +
'}';
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
</dependency>
</dependencies>
<repositories>
<!-- ... possibly other repository elements ... -->
<!-- ... possibly other service elements ... -->
<repository>
<id>spring-snapshots</id>
<url>https://repo.springsource.org/snapshot</url>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Presentation/pom.xml → presentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<!--</dependency>-->
</dependencies>
<repositories>
<!-- ... possibly other repository elements ... -->
<!-- ... possibly other service elements ... -->
<repository>
<id>spring-snapshots</id>
<url>https://repo.springsource.org/snapshot</url>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.mary.pro.cotroller;


import org.mary.pro.DAO.UserDAO;
import org.mary.pro.service.UserDAO;
import org.mary.pro.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mary.pro.DAO;
package org.mary.pro.service;

import org.mary.pro.model.User;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mary.pro.DAO.UserDAO;
import org.mary.pro.service.UserDAO;
import org.mary.pro.config.ApplicationContextConfig;
import org.mary.pro.model.User;
import org.mockito.InjectMocks;
Expand Down

0 comments on commit 51a6bc2

Please sign in to comment.