sergAccount

Untitled

Feb 13th, 2021
790
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×