@Override
  @OpenEntityManager
  public MultimediaImpl getMultimediaByBlackboardId(long bbMultimediaId) {
    final NaturalIdQuery<MultimediaImpl> query = this.createNaturalIdQuery(MultimediaImpl.class);
    query.using(MultimediaImpl_.bbMultimediaId, bbMultimediaId);

    return query.load();
  }
 @Override
 @DialectAwareTransactional(value = PostgreSQL81Dialect.class, exclude = false)
 @PortalTransactionalReadOnly
 @OpenEntityManager(unitName = PERSISTENCE_UNIT_NAME)
 public IPortletDefinition getPortletDefinitionByFname(String fname) {
   final NaturalIdQuery<PortletDefinitionImpl> query =
       this.createNaturalIdQuery(PortletDefinitionImpl.class);
   query.using(PortletDefinitionImpl_.fname, fname);
   return query.load();
 }