Given this scenario, when you have “transfer objects” (POJOs using getters / setters only) that are passed by the client library to your API, what is the best way to name transfer objects?
package com.x.core; public class Car { private String make; private String model; public Car(com.x.clientapi.Car car) { this.make = car.getMake(); this.model = car.getModel(); } }
In this example, your main class and your transfer object are named Car . They are in different packages, but I think it confuses one name. Is there a best practice on how to name transfer objects?
java naming-conventions
Marcus Leon Nov 12 '09 at 19:30 2009-11-12 19:30
source share