You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Todd Nine <to...@spidertracks.com> on 2011/03/15 03:29:25 UTC

More questions regarding frameworks

Hi guys,
  I have a few more questions.  I've made some progress in identifying
where I need to update the hector plugin for collections and could use
some help.


Collections/Associations.

On all collections I need to update a secondary index.    The
AbstractStoreManager.flush method contains all new entities, deleted
entities, and dirty entities.  As I'm creating my EntityFacade for
operations, is it possible to tell within the x-to-many fields which
items have been updated or deleted from field meta data?  This would
allow me to optimize the indexing and not update indexes on values that
haven't changed.


https://github.com/riptano/hector-jpa/blob/master/src/main/java/com/datastax/hectorjpa/store/EntityFacade.java

lines 54 and 62.


I've also noticed that api performs all the query parsing for me.  Do I
simply extends the ExpressionStoreQuery object to create my own queries
within Cassandra?  How do I wire this as the query mechanism in the
plugin?

Thanks,
Todd