Advertisement
sergAccount

Untitled

Feb 13th, 2021
921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.app12;
  7.  
  8. import java.time.LocalDateTime;
  9.  
  10. /**
  11.  *
  12.  * @author Admin
  13.  */
  14. public class Account {
  15.    
  16.     private String userName;
  17.     private LocalDateTime createdOn;
  18.     // ...    
  19.     /*
  20.     created_on TIMESTAMP NOT NULL,
  21.     last_login TIMESTAMP
  22.     */        
  23.     public Account(String userName){
  24.         this.userName = userName;        
  25.     }    
  26.  
  27.     public Account() {
  28.     }
  29.  
  30.     public String getUserName() {
  31.         return userName;
  32.     }
  33.  
  34.     public void setUserName(String userName) {
  35.         this.userName = userName;
  36.     }
  37.  
  38.     public LocalDateTime getCreatedOn() {
  39.         return createdOn;
  40.     }
  41.  
  42.     public void setCreatedOn(LocalDateTime createdOn) {
  43.         this.createdOn = createdOn;
  44.     }
  45. }
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement