1

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

Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
McGovernTheory
  • 6,556
  • 4
  • 41
  • 75

3 Answers3

1

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
  • 21,824
  • 5
  • 78
  • 111
  • Can you say a bit more about how RDF relates to EAV? – codeulike Nov 18 '10 at 13:18
  • In RDF the Entity-Attribute-Value translates to Subject-Predicate-Object, where Subjects and Predicates are resources and objects are either resources or literals. So you can describe Predicates as well via Subject-Predicate-Object statements. RDF is more formal than EAV. In addition to this you get multiple serialization formats, schemas/ontologies for additional constraints and semantics and a query language (SPARQL). – Timo Westkämper Nov 18 '10 at 19:32
0

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
  • 34,472
  • 31
  • 113
  • 192
0

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
  • 9,016
  • 5
  • 32
  • 41