|
OK... (1) Doc for load(String entityName, Serializable id) says: ... @param entityName a persistent class ... Presumably this should say (as is the case for the corresponding get(String, Serializable) method): ... @param entityName The entity name ...
(2) Maybe add a note for the get(Class,...) and load(Class...) overloads against the clazz/theClass parameter, for example: ... @param clazz a persistent class. Note that if the persistent class is mapped with an entity-name, {@link #get(String, java.io.Serializable)}
should instead be used, passing the specific entity name (and not the class name). ...
[Not sure how all this plays out with annotation mapped classes where each @Entity annotated class that can have only a single entity 'name'. I guess that's another story.]
|