Advertisement
Guest User

Untitled

a guest
Sep 11th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. package database.model;
  2.  
  3. import org.springframework.beans.factory.annotation.Configurable;
  4. import org.springframework.context.annotation.Bean;
  5. import org.springframework.context.annotation.Configuration;
  6. import org.springframework.stereotype.Service;
  7.  
  8. //@Configuration
  9. @Service("userRepository")
  10. public class UserRepository {
  11.    
  12.     private User user1;
  13.     private User user2;
  14.  
  15.     //u2
  16.     public void printUser2(){
  17.         System.out.println("user2 : " + user2);
  18.     }
  19.    
  20.     public User getUser2() {
  21.         return user2;
  22.     }
  23.  
  24.     public void setUser2(User user2) {
  25.         this.user2 = user2;
  26.     }
  27.    
  28.     //u1
  29.     public void printUser1(){
  30.         System.out.println("user1 : " + user1);
  31.     }
  32.    
  33.     public User getUser1() {
  34.         return user1;
  35.     }
  36.  
  37.     public void setUser1(User user1) {
  38.         this.user1 = user1;
  39.     }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement