Learning Modular Java Programming by Tejaswini Mandar Jog

Learning Modular Java Programming by Tejaswini Mandar Jog

Author:Tejaswini Mandar Jog [Jog, Tejaswini Mandar]
Language: eng
Format: azw3, epub
Publisher: Packt Publishing
Published: 2016-06-30T04:00:00+00:00


Create the main class from where execution starts. The code snippet will be as follows:public static void main(String[] args) { // TODO Auto-generated method stub ContactHibernateDao dao=newContactHibernateDaoImpl(); Contact contact=newContact(); contact.setEmail("[email protected]"); contact.setAddress("Pune"); contact.setFirstName("billy"); contact.setLastName("brown"); contact.setGender(1); contact.setPhone_number("7876432123"); String email=dao.insertContact(contact); if(email!=null) { System.out.println("data inserted successfully with id:- "+email); } else { System.out.println("please choose new mail ID"); } }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.