Enhancement 211 : ENHANCEMENT - Add addJars(...) setJars(...) to ServerConfig
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.4.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
28/01/2010
Updated 
28/01/2010
Type 
Enhancement
 
Attachments 
No attachments

If you don't explicitly list all the classes (entity classes, listeners etc) then Ebean will search for these in the classpath.

These added methods allow the developer to specify the names of jars that are in the classpath to search (jars that contain entity classes etc).

Previously you would have to rely on the ebean.properties setting:

ebean.search.jars=myJarContainingEntities.jar,myOtherJarWithEntites.jar

... where these jars contain entity classes, listeners etc.

 
Rob 28 Jan 08:58
Fixed in HEAD

This is in HEAD now.

Paul 03 Feb 14:22
Implemention / API suggestion

It would be useful for the notation to support classpath elements in general so that directories should be included or excluded.

It would also be useful to allow wild cards in cases where developers version their jars for example

ebean.search.jars=*Entities*.jar,myOtherJarWithEntites.jar

to support the case where the jar is myJarContainingEntities-1.0-SNAPSHOT.jar

woResponse

Upload a file