Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.mycompany.app12;
- import java.time.LocalDateTime;
- /**
- *
- * @author Admin
- */
- public class Account {
- private String userName;
- private LocalDateTime createdOn;
- // ...
- /*
- created_on TIMESTAMP NOT NULL,
- last_login TIMESTAMP
- */
- public Account(String userName){
- this.userName = userName;
- }
- public Account() {
- }
- public String getUserName() {
- return userName;
- }
- public void setUserName(String userName) {
- this.userName = userName;
- }
- public LocalDateTime getCreatedOn() {
- return createdOn;
- }
- public void setCreatedOn(LocalDateTime createdOn) {
- this.createdOn = createdOn;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement