Convert java data object to service object -


when writing service tend have separation between data object(orm) , service object(one marshalled json/xml etc.) , end writing converter takes data object(s) input , produces service object(s). converter nothing gets data data object using getters , sets of them service object.

i hope people able relate process. want know if jdk has optimize scenario.

i thinking more in terms of optimized array copy jvm @ system level.

what call "data object" called "entity". call "service object" called "data transfer object" ("dto").

those 2 java objects other java objects, , jvm doesn't have specific thing optimize transformation of entities dtos.

this process extremely fast anyway compared cost of executing sql query , entities, , serializing dtos send them on network. if have optimize, it's not transformation of entities dtos.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -