public KeyMetadata < P > getKeyMetadata ( ) { final Populator < Object > populator = props . get ( 0 ) ; Preconditions . checkState ( populator instanceof KeyPopulator , "Cannot get KeyMetadata for non-@Entity class " + this . clazz ) ; return ( ( KeyPopulator < P > ) populator ) . getKeyMetadata ( ) ; }
Gets the key metadata but only if this was an