title: PlayFramework, how to register a BeanPersistListener?
body: <p>I discovered the <a href="http://www.avaje.org/static/javadoc/pub/com/avaje/ebean/event/BeanPersistListener.html" rel="nofollow noreferrer">BeanPersistListener</a> that I'd like to register to some of my models, but I didn't find any documentation, from Ebean nor PlayFramework on how to integrate it.</p>
  
  <p>From the documentation :</p>
  
  <blockquote>
    <p>A BeanPersistListener is either found automatically via class path search or can be added programmatically via ServerConfiguration.addEntity().</p>
  </blockquote>
  
  <p>Apparently, it isn't found automatically (I added some <code>Logger.info</code> in the implemented methods, and nothing was shown), so I'd like to add it via ServerConfiguration, but how? where?</p>
  
  <p>I'm also suspecting it's a version problem. From what I've seen, BeanPersistListener is from Ebean 2.6.0, but I can't find which version of Ebean PlayFramework is running (I'm using 2.0.4).</p>