They're alternatives for resource="". There's also package and class attributes. jar and package and read all .hbm.xml files in the given jar or package. class reads mappings from the listed class' annotations. And file parses file just like resource, I think.
Note that these are all mutually exclusive. If a mapping line specifies resource, then none of the other attributes are used. All the relevant source code is in Configuration.java, and it's pretty easy to follow. I just glanced at it for this info, I haven't followed it in detail, so I may be making some incorrect assumptions.
_________________ Code tags are your friend. Know them and use them.
|