/*
 * 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.scheduler.schedulerdatabase;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.validation.constraints.NotNull;

/**
 *
 * @author towers
 */
@Entity
@NamedQuery(name = "findDatabaseSourceEntryById",query = "Select c from DatabaseSource c where c.id=:id")
public class DatabaseSource implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

   

 //   @NotNull(message = "Host name field is required")
    private String _hostSc;
  //   @NotNull(message = "Database Name field is required")
    private String _databasenameSc;
 //   @NotNull(message = "User field is required")
    private String _userSc;
  //  @NotNull(message = "Password field is required")
    private String _passwordSc;

     public DatabaseSource() {
    }
    
    @Override
    public String toString() {
        return  _hostSc +"-"+ _databasenameSc +"-"+  _userSc +"-"+ _userSc +"-"+   _passwordSc ;
    }

   

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getHostSc() {
        return _hostSc;
    }

    public void setHostSc(String _hostSc) {
        this._hostSc = _hostSc;
    }

    
     public String getDatabasenameSc() {
        return _databasenameSc;
    }

    public void setDatabasenameSc(String _databasenameSc) {
        this._databasenameSc = _databasenameSc;
    }
    

    public String getUserSc() {
        return _userSc;
    }

    public void setUserSc(String _userSc) {
        this._userSc = _userSc;
    }

    public String getPasswordSc() {
        return _passwordSc;
    }

    public void setPasswordSc(String _passwordSc) {
        this._passwordSc = _passwordSc;
    }

}

@@ -498,14 +498,14 @@
 hor 
-towers
+Duncan
 %0A */

Update DatabaseSource.java