Thanks people for your inputs.
I could not get a conclusive test, for the issue was simply gone
without major changes

(except for one suspected change - i restored the persistent database
to a previous instance, after having perceived the mess being produced
in the tables, to each modification made in the entity design).

2017-04-27 8:05 GMT-04:00, Dan Haywood <[email protected]>:
> Ah no, my bad...  @Column doesn't have a "required" member.
>  @Column(allowsNull="true") is what I meant to write.
>
> HTH
> Dan
>
> On Thu, 27 Apr 2017 at 13:01 Rade, Joerg / Kuehne + Nagel / Ham GI-DP <
> [email protected]> wrote:
>
>> Does you import section contain:
>> {code}
>> import javax.jdo.annotations.Column;
>> {code}
>> -j
>> -----Ursprüngliche Nachricht-----
>> Von: L Eder [mailto:[email protected]]
>> Gesendet: Donnerstag, 27. April 2017 13:53
>> An: [email protected]
>> Betreff: Re: A dependency case in Isis
>>
>> Curiously i got "Cannot resolve method 'required'. As below:
>>
>>     @Column(required = false, allowsNull = "true")
>>     @Getter @Setter
>>     @MemberOrder(sequence="1")
>>     private String codigo;
>>
>>
>> 2017-04-26 9:49 GMT-04:00, Dan Haywood <[email protected]>:
>> > Try @Column(required = false).
>> >
>> > The @Property annotation is an Isis one, not recognised by DataNucleus.
>> >
>> > On Wed, 26 Apr 2017, 12:25 L Eder, <[email protected]> wrote:
>> >
>> >> Hi Ahmed, i tried marking the column using this
>> >>
>> >>            @Property(notPersisted=true)
>> >>
>> >> without effect.
>> >>
>> >> That was the closest property atribute i found in the documentation.
>> >>
>> >> Is that what you meant?
>> >> Eder
>> >>
>> >>
>> >> 2017-04-25 14:59 GMT-04:00, Ahmed Ragab <[email protected]>:
>> >> > I guess you need to mark the column as not required.
>> >> >
>> >> > Sorry for the short reply. Sent from phone.
>> >> >
>> >> > Best Regards,
>> >> > Ahmed
>> >> >
>> >> > On 25 Apr 2017, 15:43 +0200, L Eder <[email protected]>, wrote:
>> >> >> Hello members
>> >> >>
>> >> >> i have this use case, in that i need to extract some data from a
>> >> >> repository object of the own entity.
>> >> >>
>> >> >> Let me explain:
>> >> >> In the creation of a new entity Scenario, i have to select a past
>> >> >> scenario, via drop-down list of Scenario repository.
>> >> >>
>> >> >> Then i did this: i added a reference property to itself
>> >> >> Scenario,.java:
>> >> >> private Scenario pastScenario;
>> >> >>
>> >> >> However i am getting this IDE build time error:
>> >> >>
>> >> >> MySQLIntegrityConstraintViolationException: Cannot add or update a
>> >> >> child row: a foreign key constraint fails
>> >> >> (`database`.`#sql-6c4_44c`, CONSTRAINT `scenario_fk1` FOREIGN KEY
>> >> >> (`pastscenario_id_oid`) REFERENCES `scenario` (`id`))
>> >> >>
>> >> >> How could then correctly model this dependency case in Isis?
>> >> >>
>> >> >> Thanks for any help, Eder
>> >> >> -------------------------------------
>> >> >> Scenario.java
>> >> >> "
>> >> >> ....
>> >> >> @Column(allowsNull = "true")
>> >> >> @Property()
>> >> >> @Getter @Setter
>> >> >> private Scenario pastScenario;
>> >> >>
>> >> >> ...
>> >> >>
>> >> >> @Persistent(table="ScenarioStuffItems")
>> >> >> @Join(column="scenario_id")
>> >> >> @Element(column="stuffitem_id")
>> >> >> @Getter @Setter
>> >> >> @CollectionLayout(render = RenderType.EAGERLY, named="Stuff View")
>> >> >> private SortedSet<StuffItem> stuffItems = new
>> >> >> TreeSet<StuffItem>();
>> >> >>
>> >> >> ....
>> >> >>
>> >> >> public Scenario importStuff() {
>> >> >>
>> >> >> final SortedSet<StuffItem> stuffItemsOnPastScenario =
>> >> >> this.getPastScenario().getStuffItems();
>> >> >>
>> >> >> for (StuffItem siOnPS: stuffItemsOnPastScenario){...extract some
>> >> >> data ...}
>> >> >>
>> >> >> ....
>> >> >>
>> >> >> }
>> >> >> "
>> >> >>
>> >> >> ScenarioMenu.java
>> >> >> "
>> >> >> @Action(
>> >> >> )
>> >> >> @MemberOrder(sequence = "3")
>> >> >> public Scenario create(
>> >> >> ...
>> >> >> @Parameter(optionality = Optionality.OPTIONAL)
>> >> >> @ParameterLayout(named="Past Scenario") final Scenario
>> >> >> pastScenario, ....
>> >> >> "
>> >> >
>> >>
>> >
>>
>> Kühne + Nagel (AG & Co.) KG
>> Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE
>> 812773878.
>> Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Dr. Hansjörg Rodi (Vors. ),
>> Martin Brinkmann, Matthias Heimbach, Jan-Hendrik Köstergarten, Nicholas
>> Minde, Michael Nebel, Lars Wedel, Matthias Weiner.
>> Persönlich haftende Gesellschafterin: Kühne & Nagel A.G., Rechtsform:
>> Aktiengesellschaft nach luxemburgischem Recht, HR-Nr.: B 18745,
>> Geschäftsführendes Verwaltungsratsmitglied: Karl Gernandt.
>> Geschäftsleitung Region Zentral- und Osteuropa: Dr. Hansjörg Rodi
>> (Vors.),
>> Thierry Held, Uwe Hött, Richard Huhn, Holger Ketz, Jan-Hendrik
>> Köstergarten, Jan Kunze, Michael Nebel, Guillaume Sauzedde, Mustafa
>> Sener.
>>
>> Wir arbeiten ausschließlich auf Grundlage der Allgemeinen Deutschen
>> Spediteurbedingungen 2017 (ADSp 2017). Hinweis: Die ADSp 2017 weichen in
>> Ziffer 23 hinsichtlich des Haftungshöchstbetrages für Güterschäden (§ 431
>> HGB) vom Gesetz ab, indem sie die Haftung bei multimodalen Transporten
>> unter Einschluss einer Seebeförderung und bei unbekanntem Schadenort auf
>> 2
>> SZR/kg und im Übrigen die Regelhaftung von 8,33 SZR/kg zusätzlich auf
>> 1,25
>> Millionen Euro je Schadenfall sowie 2,5 Millionen Euro je
>> Schadenereignis,
>> mindestens aber 2 SZR/kg, beschränken. Die ADSp sind auf unserer Webseite
>> als Download erhältlich. Auf Anfrage senden wir Ihnen diese auch gerne
>> zu.
>>
>

Reply via email to