I wonder if this static metamodel would be suitable for different jpa providers.
It would be. The generated classes conform to the canonical metamodel as defined by the JPA spec.