Questions tagged [metamodel]

Metamodel is a collection of concepts (frames, rules, terms, constraints, models and theories) that are applicable and useful for modeling a predefined class of problems.

A model is an abstraction of phenomena in the real world; a metamodel is yet another abstraction, highlighting properties of the model itself. A model conforms to its metamodel in the way that a computer program conforms to the grammar of the programming language in which it is written.

Metamodeling, or meta-modeling in software engineering and systems engineering among other disciplines, is the analysis, construction and development of the frames, rules, constraints, models and theories applicable and useful for modeling a predefined class of problems.

Metamodeling is usually defines of a collection of concepts within a certain domain.

cf. wikipedia

225 questions
2
votes
1 answer

Model, Meta-model and Meta-metamodel

The argument I'm studying software engineering, and I'm on "model driven engineering" course slides. The main topic of this slides is, obviously, the model. the definition for the general concept of a model is: A model is an abstract representation…
artas
  • 148
  • 1
  • 3
  • 12
2
votes
1 answer

optimizing hibernate metamodel generation in gradle using hibernate-jpamodelgen

The package Hibernate-Jpamodelgen is an annotation processor / code generator that operates on JPA @Entity classes. It is often needed in applications that use JPA Criterion Queries. Gradle provides an "incremental compilation" mode, but plugins…
sdw
  • 623
  • 9
  • 10
2
votes
1 answer

How to make kapt works with jpa

Maven fails while compileris trying to generated jpa entities. Gender_.java:[11,50] cannot find symbol Gender Both classes are exists. Gender class exists in kaptStubs directory, Gender_ in kapt directory. pom:
2
votes
3 answers

Rails custom meta model?

I'd like to be able to add "meta" information to a model, basically user-defined fields. So, for instance, let's imagine a User model: I define fields for first name, last name, age, gender. I would like users to be able to define some "meta…
Andrew
  • 42,517
  • 51
  • 181
  • 281
2
votes
2 answers

Ceylon metamodel

I am studying Ceylon and have question about it metamodel. I want to create some create some base class 'DataContainer' which allow to instantiate immutable classes with build-in equals-hash implementation: e.g. Identifier(125, "ab") ==…
2
votes
0 answers

Hibernate MetaModel cannot be resolved to a type

I've generated my metamodels correctly as seen below. They do not import the actual entity class therefore I get the " cannot be resolved to a type" compiler error. package dummy.package; import javax.annotation.Generated; import…
Joe
  • 181
  • 11
2
votes
0 answers

understand JPA declared attributes of ManagedType

JPA ManagedType has public Set> getAttributes() public Set> getDeclaredAttributes() What are declared attributes? what are not declared attributes? Please explain by example.…
eastwater
  • 4,624
  • 9
  • 49
  • 118
2
votes
2 answers

Generate a new Ecore metamodel based on another one in Java

I am a beginner in Eclipse EMF. I have created an Ecore metamodel which I want to transform into a new Ecore metamodel in Java that takes into account some characteristics of the first metamodel. I have searched the web but the exlpanations I've…
McRaven
  • 111
  • 1
  • 2
  • 11
2
votes
0 answers

Using Hibernate .hbm.xml mapping for JPA metamodel generation

I am attempting to generate the JPA metamodel from the Hibernate mapping configuration (.hbm.xml) using JDK 8 and Hibernate 5.2.0. From the output I see it is finding the Hibernate Static Metamodel generator, but it does not appear to be detecting…
wbdarby
  • 1,129
  • 12
  • 12
2
votes
2 answers

How to set custom metamodel in Acceleo project?

I try to make generator from my custom metamodel. I created it by Obeo Designer - it is ecore metamodel. So I create new Acceleo Project, choose my metamodel URI (http://org/model/ros) from "Runtime version" and try to run it. But project can't run…
kuba44
  • 1,838
  • 9
  • 34
  • 62
2
votes
0 answers

How to getValues from metamodel.MapAttribute

How to use metamodel.MapAttribute? I would like to get the values from Map, but I do not know how? The idea is to know all the meter on a calibration bench. public class Calibration_ { public static volatile…
Vinicius
  • 21
  • 1
2
votes
1 answer

Unable to access MetaModel entity attributes

I have tried to access the MetaModel entity attributes/variables using the code below: CriteriaQuery criteria = builder.createQuery(User.class); Metamodel m = entityManager.getMetamodel(); EntityType User_ =…
Krish
  • 1,804
  • 7
  • 37
  • 65
2
votes
0 answers

JPA metamodel and @Convert on a List attribute

I'm exploring the possibilities of using the JPA metamodel with the Criteria API. I have some entities that have attributes like this: @Column( name = "defaultValue" ) @Convert( converter = StringListToStringConverter.class ) private List
Hein Blöd
  • 1,553
  • 1
  • 18
  • 25
2
votes
1 answer

openjpa metamodel tool doesn't generate metamodel

I'm trying to generate a metamodel in an existing maven project. The project already has a few data sources with metamodels being generated in generated-sources. I need to add a table from a new DB to this app. I generated the java class & …
Mr Smith
  • 3,318
  • 9
  • 47
  • 85
2
votes
2 answers

Why aren't APT generated classes being compiled by Eclipse?

In my Eclipse project I'm using a third-party annotation processor, Hibernate Metamodel Generator to be exact. The annotation processor works as expected and generates .java files as specified by the spec. These files are generated into the…
Andrey
  • 8,882
  • 10
  • 58
  • 82