Changeset 7380


Ignore:
Timestamp:
May 22, 2017, 2:04:48 PM (5 years ago)
Author:
Nicklas Nordborg
Message:

References #2084: Upgrade to Hibernate 5.2

Location:
branches/hibernate-5.2/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/hibernate-5.2/src/clients/web/net/sf/basedb/clients/web/servlet/Upload.java

    r7242 r7380  
    215215        }
    216216       
    217         // We don't need the database connection while uploading
    218         dc.disconnect();
    219 
    220217        // Read the uploaded data
    221218        InputStream uploadStream = uploadedFile.getInputStream();
     
    246243        // to the end in case it contains info that we need
    247244        upload.next();
    248        
    249         // The upload is done, now set other properties
    250         dc.reconnect();
    251245      }
    252246     
  • branches/hibernate-5.2/src/core/net/sf/basedb/core/AnnotationBatcher.java

    r7377 r7380  
    215215    @since 3.11
    216216  */
    217   @SuppressWarnings({ "unchecked" })
     217  @SuppressWarnings({ "unchecked", "rawtypes" })
    218218  private AnnotationBatcher(DbControl dc, Item itemType, Integer projectId)
    219219  {
  • branches/hibernate-5.2/src/core/net/sf/basedb/core/HibernateUtil.java

    r7379 r7380  
    22272227  }
    22282228
     2229  @SuppressWarnings("deprecation")
    22292230  static ClassMetadata getClassMetadata(String entityName)
    22302231  {
  • branches/hibernate-5.2/src/core/net/sf/basedb/core/LogControl.java

    r7374 r7380  
    137137    scalar values only, not entities.
    138138    @return A Query
    139   */
     139    @deprecated In 3.12. use {@link #createHqlQuery(String, Class)} instead
     140  */
     141  @Deprecated
    140142  public org.hibernate.query.Query<?> createHqlQuery(String hql)
    141143  {
     
    184186    implementation. The query uses the stateless session.
    185187    @return A query
    186   */
     188    @deprecated In 3.12. use {@link #createSqlQuery(String, Class)} instead
     189  */
     190  @Deprecated
    187191  public org.hibernate.query.Query<?> createSqlQuery(String sql)
    188192  {
  • branches/hibernate-5.2/src/core/net/sf/basedb/core/hibernate/SessionWrapper.java

    r7364 r7380  
    7676  @base.modified $Date$
    7777*/
     78@SuppressWarnings("unchecked")
    7879public class SessionWrapper
    7980  extends AbstractQueryCache
     
    859860  }
    860861
    861   @SuppressWarnings({ "rawtypes", "unchecked" })
     862  @SuppressWarnings({ "rawtypes" })
    862863  @Override
    863864  public NativeQuery createNativeQuery(String sql, Class resultClass)
     
    10891090  }
    10901091
    1091   @SuppressWarnings("unchecked")
    10921092  @Override
    10931093  public <T> T unwrap(Class<T> cls)
Note: See TracChangeset for help on using the changeset viewer.