• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

recNo and DTO object

 
Sergey Bylokhov
Greenhorn
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 ?

Thanks
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • 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,
Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic