• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

recNo and DTO object

Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone

Question about DTO object in the assignments, I create Contractor object and i have a few question about it:
1 recNo(record identifier) - is part of the Contractor object?
2 What is default values for dto objects? just empty strings?
3 DTO attributes recNo,name etc can be null ?

Posts: 11604
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sergey,

1. I added recNo as a part of my DTO (but it was not a part of the String array)
2. I used null as default values for the String attributes (and Boolean.FALSE and 2 for some very specific non-String attributes)
3. That's completely up to you.

Kind regards,
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic