views:

348

answers:

4

I am interested in developing a portal-based application that works with EAV models and would like to know if there are any Java frameworks that aid in this type of development?

salesforce.com uses EAV and currently has twenty tables. The framework I seek should allow it to be configurable to different EAV implementations

+1  A: 

Well this popped up on a google search:

http://code.google.com/p/simple-java-eav-engine/

EAV Database utility for everyday use and throw situation. It works with two table. Default database used is MySQL.

skaffman
A: 

The Jena library is a standard for handling a set of RDF statements (Resource/Property/Object).

Other RDF engine: http://mulgara.org/, http://sourceforge.net/projects/virtuoso/...

Pierre
A: 

Sesame is a more modern RDF API compared to Jena. RDF can be seen as a variant of the EAV model.

The framework I seek should allow it to be configurable to different EAV implementations

Both Jena and Sesame are available as API layers for many RDF storage engines.

Timo Westkämper
A: 

You can try to create your custom EAV with Hibernate using Map element mapping (example in Groovy):

@Entity
public class FooEntity {

  @Id @GeneratedValue
  long id;


  @CollectionOfElements
  Map<String,String> propz;   

}
Henryk Konsek