Here are three internal variables of a VO, all using the boxing type. In a business, you need to compare a variable with an external variable. Since Long encapsulates a value that can be null, an error is reported when null is compared with a numeric type.
Lesson: When numerical comparisons are required, use encapsulated data types with caution and preferably not.