Fast Object Database for Java - with JPA/JDO support




Is there a way to integrate ObjectDB with Spring Framework to add the benefits of Transaction Management and DAO Support?



ObjectDB is used with the Spring MVC Framework by some users.

Currently there is no tutorial for using ObjectDB with Spring, so try to follow a generic tutorial for using JPA with Spring.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)


I'm trying ObjectDB with Spring ROO

I'm getting the error:

 Cannot apply class transformer without LoadTimeWeaver specified

at org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.addTransformer(

for now this is what i found to be relevant:

seems they ran into the same problem? just guessing here

if i could get this to work it would be nice.



The Spring manual specifies 3 methods for JPA integration and it seems that you are right and the third method didn't work with ObjectDB because of this problem.

Please try the new build (2.0.3_03) that should solve this issue.

Notice that in the new ObjectDB build load time weaving (enhancement) by Spring is currently disabled - but this might be changed in future versions.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)


thanks for the fast response.

it's running now! Though i am pondering about the repercussions of spring enhancement not being applied.

(as far as i know i'm not using loadtime weaving but compile time weaving with aspectj)

anyway, i got a spring roo with gwt sample running (something is still wrong but i will delve deeper when i find time.)

next on the agenda is effectively persisting stuff etc see what other errors i can dig up;)

ps: i 'm using objectdb in embedded mode for now. Is it that big a performance difference vs server mode?


Thank you for your useful report. You can still use ordinary enhancement (e.g. during build) to gain performance. I wonder what would happen if you would enable Spring load time weaving.

Regarding embedded mode vs client-server mode - see:

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

indeed i'm getting a Type not found error

i know this is because i haven't persisted anything yet but i'm looking to incorporate the odb enhancement in my maven build.

i tried a class entry in my persistence.xml but that didnt seem to be working.

i tried adding compiler arguments(maven compiler plugin) but i need a little guidance here as to figuring out the correct path or argument line to use.

i can see a warning in the odb log file about my entity not being enhanced.

another option is using antrun but i would want to avoid resorting to workarounds like that untill i have more information.


Enhancement is optional. If you have other issues please open new forum threads. You should provide more details including a full stack trace. In addition, if you can provide a test case that demonstrates an issue it can help.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Hi All,

With due respect, just want to ask anyone can help by directing me to Maven Repo if available for ObjectDB? if not is there any better reason for that?




Duplicate of the Maven Repo for ObjectDB thread.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Update: Tutorials on how to use ObjectDB with Spring and Java EE (in Eclipse and NetBeans) are now available.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply