Hey all,

I just finished the first (working) implementation of the Object-Plc-Mapping 
(OPM).
This is a JPA Like functionality on top of plc4x which allows to issue requests 
against plc4x by calling Methods on POJOs!

Basically, it uses 3 classes.

  *   PlcEntityManager: This is the main class. A call on read(…) or connect(…) 
does all the necessary magic
  *   PlcEntity (Annotation): A Pojo needs this annotation to be used with 
read(…) or connect(…) above
  *   PlcField (Annotation): Fields in the Pojo that are annotated with this 
field are fetched from the plc

Some simple tests (with mocking) can be found in PlcEntityManagerTest.

I would be really happy for some feedback on the basic semantics (which 
annotations, where to put them, …) or even some testing.
If the feedback on this is positive I would like issue a PR for this.

Current Code can be found in my Repo in the opm-plcentitymanager branch under 
https://github.com/JulianFeinauer/incubator-plc4x/tree/opm-plcentitymanager

Best
Julian

Reply via email to