CINXE.COM
Upgrading Ebean version
<!doctype html> <html lang="en"> <head> <title>Upgrading Ebean version</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="shortcut icon" href="/images/favicon.ico"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Source+Sans+Pro|Ubuntu&display=swap"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous"> <link rel="stylesheet" href="/css/reset3.css"> <link rel="stylesheet" href="/css/site3.css"> <link rel="stylesheet" href="/css/pygments3.css"> <title>Getting help | Ebean</title> </head> <body> <div id="main"> <div id="banner"> <header> <nav id="top"> <h1 id="breadcrumb"> <a class="nav-logo" href="/"><img src="/images/logo-200.png" height="35"></a> <a href="/docs">Documentation</a><span class="sep"> / </span><span class="last">Upgrading</span> </h1> <ul> <li><a onclick="toggleTheme();" title="switch dark light theme"><i class="fas fa-adjust"></i></a></li> </ul> </nav> </header> </div> <div class="grid grid-docs"> <aside> <nav class="side"> <ul> <li class="nav0 "> <a href="/docs/getting-started">Getting started</a> </li> <li class="nav0 "> <a href="/docs/intro">Introduction</a> </li> <li class="nav0 "> <a href="/docs">Documentation</a> </li> <li class="nav0 "> <a href="/support">Getting help</a> </li> <li class="nav0 "> <a target="_blank" href="/apidoc/13">API Javadoc</a> </li> <li class="nav0 "> <a href="/videos">Videos</a> </li> <li class="nav0 active"> <a class="active" href="/docs/upgrading">Upgrading</a> </li> <li class="nav0 "> <a href="/releases">Releases</a> </li> </ul> </nav> </aside> <article> <form action="https://www.google.com/search" method="get" class="inline-form"> <input type="hidden" name="as_sitesearch" value="ebean.io"> <div id="page-search"> <div class="input-group"> <input class="frm" name="q" id="searchinput" type="text" placeholder="Search... (press 's' to focus)" data-placeholder-focus="Search... (use '↑', '↓' and '⏎' to select results)" data-placeholder-blur="Search... (press 's' to focus)" autocomplete="off"> <div class="input-group-btn"> <button class="frm" type="submit"><i class="fas fa-search"></i></button> </div> </div> <div id="page-search-results" style="display: none;"> <ul id="search-results-container" class="search-results"><li class=" active"><a href="/docs" title="Docs"><span style="color:#777;">Docs</span> Documentation </a></li><li class=""><small style="color:#999;">And 101 more...</small></li></ul> </div> </div> </form> <h2>Summary of changes</h2> <p> A summary of changes needed in migrating to a later version of Ebean. </p> <h2>Upgrading to 12.x from 11.x</h2> <ul> <li> #1826 Removed <code>@PrivateOwned</code>, migrate to orphanRemoval=true attribute on <code>@OneToMany</code> </li> <li> #1824 Stateless updates - Removed update deleteMissingChildren option, instead always use orphanRemoval behaviour change breaking-api </li> </ul> <h2>Upgrading to 11.x from 10.x</h2> <ul> <li>#1434 Remove deprecated API from EbeanServer - finder methods that take explicit transaction. Migrate to use ebeanServer.extended() </li> <li>#1417 Breaking API - Remove PersistBatch.INSERT ... migrate to PersistBatch.ALL</li> <li>#1424 Deprecate / Move ... finder methods that take explicit transaction to ExtendedServer API</li> </ul> <ul> <li>new DbMigration(); -> DbMigration.create();</li> <li>findUnique() -> findOne()</li> </ul> <ul> <li>CacheMode.QUERY_ONLY -> GET</li> <li>CacheMode.RECACHE -> PUT</li> </ul> <ul> <li>io.ebean.Platform; -> io.ebean.annotation.Platform;</li> <li>io.ebean.PersistBatch; -> io.ebean.annotation.PersistBatch;</li> <li>io.ebean.TxType; -> io.ebean.annotation.TxType;</li> <li>io.ebean.TxIsolation; -> io.ebean.annotation.TxIsolation;</li> </ul> <ul> <li>Remove support for PropertyChangeListener from entity beans</li> <li>Remove ServerConfig h2ProductionMode ... means for testing with h2 explicitly set ddlGenerate and ddlRun</li> </ul> <h2>Upgrading to 10.x from 9.x</h2> <ul> <li><h4 style="font-weight: bold">Change package to io.ebean</h4></li> <li>Remove DbMigrationConfig.generateOnStart() ... migrate to offline generation</li> </ul> <h2>Upgrading to 9.x from 8.x</h2> <ul> <li>Query.includeSoftDeletes() -> setIncludeSoftDeletes()</li> </ul> <h2>Upgrading to 8.x from 7.x</h2> <ul> <li>(#682) Remove deprecated Model.Finder constructors that take Id type ... migrate to ones that don't</li> </ul> <h2>Upgrading to 7.x from 6.x</h2> <ul> <li>(#352) Remove deprecated API - ValuePair getValue1() getValue2() ... use getNewValue() getOldValue()</li> <li>(#344) Remove deprecated annotation @ColumnHstore ... migrate to @DbHstore</li> <li>(#343) Remove deprecated interface BeanFinder<T> ... migrate to BeanFindController</li> <li>(#342) Remove deprecated method - JsonContext createJsonContext() ... migrate to json()</li> <li>(#331) Remove deprecated method - EbeanServer.findVisit() ... migrate to findEach</li> </ul> <p>Changes for: <code>saveAll()</code>, <code>insertAll()</code>, <code>updateAll()</code>, <code>deleteAll()</code></p> <ul> <li>(#341) Remove deprecated method - insert(Collection<?> beans); ... migrate to insertAll()</li> <li>(#340) Remove deprecated method - update(Collection<?> beans) ... migrate to updateAll()</li> <li>(#339) Remove deprecated method - save(Collection<?> beans, Transaction transaction) ... migrate to saveAll()</li> <li>(#339) Remove deprecated method - save(Collection<?> beans, Transaction transaction) ... migrate to saveAll()</li> <li>(#338) Remove deprecated method - save(Iterator<?> it, Transaction transaction) ... please change to iterate yourself and save. </li> <li>(#337) Remove deprecated method - delete(Class<?> beanType, Collection<?> ids) ... migrate to deleteAll()</li> <li>(#336) Remove deprecated method - delete(Iterator<?> it, Transaction transaction) ... migrate to deleteAll()</li> <li>(#335) Remove deprecated method - delete(Collection<?> beans) ... migrate to deleteAll()</li> <li>(#334) Remove deprecated method - delete(Iterator<?> it) ... migrate to deleteAll()</li> <li>(#333) Remove deprecated method - save(Iterator<?> it) ... change to iterate yourself and save()</li> <li>(#332) Remove deprecated method - save(Collection<?> beans) ... migrate to saveAll(beans)</li> </ul> <nav class="next"> <p class="edit-page"> <a href="https://github.com/ebean-orm/website-source/blob/master/docs/upgrading/index.html"><i class="fab fa-github"></i> Edit Page</a> </p> </nav> </article> </div> </div> <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> <script src="/js/site3.js"></script> <script src="/js/search3.js"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-75181644-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-75181644-1'); </script> </body> </html>