Questions tagged [faktor-ips]

Questions related to Faktor-IPS, a platform for developing insurance applications.

12 questions
1
vote
1 answer

How to fix faktor ips ClassloaderRuntimeRepository not serializable: java.io.NotSerializableException

I am trying to persist a class Angebot which has an Attribute KfzVertrag, which is a policy class generated by faktor ips. I am using Spring Boot. Angebot looks like this: @Entity public class Angebot { @Id @GeneratedValue private…
j neu
  • 49
  • 6
1
vote
1 answer

faktor ips ClassCastException when casting IProductComponent to concrete product

I'm using Linkki to create a UI for a faktor ips project. I have a View class in which I added the following page, to display it: //imports... public class TestPage extends AbstractPage{ private static final long serialVersionUID = 1L; …
j neu
  • 49
  • 6
1
vote
1 answer

Extending Faktor-IPS EnumTypes

I just tried to extend an EnumType and discovered that it is only possible when the super type is marked as abstract. In my given case I would've liked to only extend my EnumType with attributes where needed and keep the super type usable with…
sfieger
  • 44
  • 1
  • 9
1
vote
1 answer

how to fix org.hibernate.LazyInitializationException and org.hibernate.WrongClassException: with faktor ips

I'm trying to add persistence to a faktor ips project that is based on the intro tutorial from https://www.faktorzehn.org. I have a model object that looks like this: @Entity public class Angebot { @Id @GeneratedValue(strategy =…
j neu
  • 49
  • 6
1
vote
1 answer

faktor ips cannot find product component class

I want to make a project with Faktor IPS which is both a model project and a product deffinition project. And I want to and a UI using Linkki. Here is my project structure: Project structure (Stack overflow won't let me add images, I hope the link…
j neu
  • 49
  • 6
1
vote
2 answers

Are there any Matchers available for the Faktor-IPS MessageList?

I'm using hamcrest in JUnit-Tests. For the Java collections classes there are Matchers like hasSize available. Are there any Matchers available for the Faktor-IPS org.faktorips.runtime.MessageList?
1
vote
1 answer

maxTableColumnSize in .ipsproject-File

I need to store a String of at least 2000 chars in the database, but i get the following validation message in Faktor-IPS: Spalten-Size erreicht das Limit [1..255] I found the PersistenceOptions in the .ipsproject-File and the attribute…
Thorsten
  • 93
  • 8
1
vote
1 answer

@IpsEnumId removed by IPS-Generator, even though I annotated method with @customziedAnnotations ADDED

I'd like to annotate a getter-method with @IpsEnumId(enumType = MyEnum.class). As I know from Annotations are removed by Faktor-IPS Code Generator, I tried to add a Java-Doc-Line @customizedAnnotations ADDED. But that does not work. My annotation…
1
vote
1 answer

Annotations are removed by Faktor-IPS Code Generator

I need to annotate some methods which are generated by Faktor-IPS. The most common case is the @Override-annotation, because I have additional interfaces or a base class I implement: * Gibt den Wert des Attributs beschreibung zurueck. * …
Thorsten
  • 93
  • 8
1
vote
1 answer

How do I extend the code generation of Faktor-IPS to modify generated Code

I need to modify the code generated by Faktor-IPS. I've seen the extension property "org.faktorips.devtools.core.artefactbuilderset" and created a class extending the StandardBuilderSet. I created my own builder (MetaattributPolicyCmptClassBuilder)…
Thorsten
  • 93
  • 8
1
vote
1 answer

How do I identify a Faktor-IPS extension property in a validation message?

I've created an extension property and added some validation code - but how do I identify the extension property within the message so the error marker is placed on the field for my extension property? Here is my code: @Override public…
Thorsten
  • 93
  • 8
1
vote
1 answer

Is there a way to customize the input element for a Faktor-IPS extension property?

I've sucessfully created a plugin-project defining an extension property for a PolicyCmptType. This extension property is enum-based, so I would like to get a ComboBox as control for it, at the moment a simple Text control is created. Is there an…
Thorsten
  • 93
  • 8