The one line of code in the class body of Order defines its relationship to the Item object.
在 Order类体中有一行代码定义了它与 Item对象的关系。
One item in this code snippet that should raise some eyebrows is the reference to the ServiceLocatorManager class.
代码片断中有一项应该增加一些内容,这是对servicelocatormanager类的引用。
In this above code, even if the Order or Item class is mapped with an annotation, a separate XML file, or not at all (I would then have to map each field), I can still override it with this XML.
在上面的代码中,即使使用注释、单独的XML文件或不使用任何内容(必须映射每个字段)来映射order或item类,我仍能够使用此X ML覆盖它。
应用推荐