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
8
votes
1 answer

UML metamodel: derived, derived union and subsetting

If you have ever worked with the metamodel of UML, you propably know the concepts of unions and subsets - As far as I understand it: Attributes and associations of an element/class marked as "derived union" cannot be used directly. In more specific…
cara
  • 1,012
  • 1
  • 9
  • 15
7
votes
1 answer

What is a clabject?

I am trying to find a clear definition of clabject. Has anyone a good one ?
JCLL
  • 5,379
  • 5
  • 44
  • 64
7
votes
5 answers

IllegalStateException in Hibernate metamodel generation with maven

I'm using hibernate-jpamodelgen to generate the metamodel classes using maven. When i run mvn clean package, it works fine without any problem. But if i run the mvn package second time (without clean), I'm getting the following exception : An…
Sri
  • 4,613
  • 2
  • 39
  • 42
6
votes
1 answer

"compose_attributes" is apparently called before attributes are composed

This is another attempt to do this thing, essentially create a frozen class: my class MetamodelX::Frozen is Metamodel::ClassHOW { method compose_attributes(Mu \type) { for self.attributes(type, :local ) -> $a { my $attr =…
jjmerelo
  • 22,578
  • 8
  • 40
  • 86
6
votes
1 answer

Meta model can't be generated if mapped super class is coming from a different library

Tried generating the meta model classes for my entities and because I have super class in another library, I cannot generate the super class meta model entities. @Entity public class Employee extends AbstractCreated {} @MappedSuperclass public…
Julie
  • 179
  • 2
  • 13
6
votes
2 answers

Generate the JPA 2.0 metamodel via maven without persistence.xml?

Is there any way to generate the JPA 2.0 metamodel via maven without having a persistence.xml file. I'm using eclipselink. In my Java EE-projects I'm doing something like the following wich works fine because in that case I have a…
Christian Hager
  • 468
  • 6
  • 22
6
votes
0 answers

JPA static metamodel with @MappedSuperclass (with a bit of Generation Gap Pattern)

I tried to achieve Generation Gap Pattern with JPA entities. Here is the solution we choose ( <-- are inheritance) BaseEntity <-- EntityGenerated <-- Entity The EntityGenerated type is abstract and mapped with @MappedSuperclass, all field are…
Yann Le Moigne
  • 612
  • 6
  • 16
6
votes
1 answer

Ast representation of lambda function

I'm developing and Abstract Syntax Tree meta-model for a smalltalk and right now I have troubles with modeling a blocks. They are sort of literals but on the other hand they are behavioral entities like methods. Blocks are sort of lambda functions…
Uko
  • 13,134
  • 6
  • 58
  • 106
5
votes
1 answer

Why I get HHH015011: Unable to locate static metamodel field?

I have to deal with a view declared as following (Oracle 11g): create view V_SOME_VIEW as select X, Y from SOME_TABLE and an entity for it: import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import…
Yaroslav
  • 118
  • 1
  • 8
5
votes
2 answers

JHipster5 project with JPA static metamodel on Java 10

I have been trying to upgrade my JHipster 5 application to use Java 10 but I can't get it to compile and process JPA static metamodels with Maven. Apparently maven-compiler-plugin is not triggering hibernate-jpamodelgen in order to generate the JPA…
djeison
  • 490
  • 2
  • 5
  • 20
5
votes
1 answer

Eclipse, JPA 2.0 metamodel generator and Spring Roo working together

Is there a way to put Spring Roo and JPA 2.0 metamodel generator to work together? I have a Spring Roo project and use Eclipse as IDE. I was able to configure the Eclipse project and maven pom.xml to use JPA 2.0 metamodel generator in the…
Matheus Moreira
  • 2,338
  • 4
  • 24
  • 31
5
votes
1 answer

JPA CriteriaQuery including 2 Subqueries

I am having problems building a working complex CriteriaQuery with JPA including two subquerys. In SQL the query would look like this: SELECT * FROM photos p WHERE ((p.userID = 1) AND ((p.privacy = 0) OR (p.privacy = 1 AND EXISTS (SELECT * FROM…
jpschack
  • 181
  • 9
4
votes
2 answers

JPA: How to perform a LIKE with a NUMBER column in a static JPA MetaModel?

I do have a static metamodel with a NUMBER (actually, BigDecimal, don't ask why) column. Now I would like to do a LIKE query against that number column: CriteriaBuilder cb; cb.like(entity.get(Entity_.numbercol), "123%"); where…
Dominik Sandjaja
  • 6,326
  • 6
  • 52
  • 77
4
votes
0 answers

How to upgrade hibernate-jpamodelgen from 5 to 6?

I have a working project with this maven section: org.bsc.maven maven-processor-plugin 4.5 process
Samuel
  • 594
  • 1
  • 6
  • 22
4
votes
0 answers

Enforcing read-only attributes from the metaclass

Yes, still going with this. My impression is that there's this powerful facility in Raku, which is not really easy to use, and there's so little documentation for that. I'd like to kind of mitigate that. In this case, I'm trying to force…
jjmerelo
  • 22,578
  • 8
  • 40
  • 86
1
2
3
14 15