[midPoint] ServiceType schema extension - Error when writing to fields - Midpoint 4.4.8
Alcides Moraes
alcides.neto at gmail.com
Fri Aug 23 20:48:00 CEST 2024
So I set indexed value to false, and now it’s working fine.
I guess there’s a bug indexing ServiceType fields?
> Em 22 de ago. de 2024, à(s) 20:01, Alcides Moraes <alcides.neto at gmail.com> escreveu:
>
> Hello list,
> I’m on Midpoint 4.4.8
>
> I recently created a schema extension for ServiceTypes.
> The new fields show up on the UI just fine.
> But whenever I try to write to any of them, I get this error:
>
> org.hibernate.dialect.identity.IdentityColumnSupportImpl does not support identity key generation
>
> <GráficoColado-1.png>
>
> It’s the same error either from the UI, or from mappings, I cannot write values to any of the new fields.
> I have many schema extensions, for nearly every object type (Orgs, Users, Roles, Assignments), and they all work.
> What could be the issue here?
> Below is the XSD, very simple, with 3 string fields.
>
> Any help is appreciated, thanks
>
> <xsd:schema elementFormDefault="qualified" targetNamespace="http://midpoint.evolveum.com/xml/ns/samples/extension-3"
> xmlns:tns="http://midpoint.evolveum.com/xml/ns/samples/extension-3"
> xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
> xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
> <xsd:complexType name="ServiceExtensionType">
> <xsd:annotation>
> <xsd:appinfo>
> <a:extension ref="c:ServiceType"/>
> </xsd:appinfo>
> </xsd:annotation>
> <xsd:sequence>
> <xsd:element name="contaAplicUsername" type="xsd:string"
> minOccurs="0">
> <xsd:annotation>
> <xsd:appinfo>
> <a:indexed>true</a:indexed>
> <a:displayName>Nome do usuário AD de aplicação</a:displayName>
> <a:displayOrder>100</a:displayOrder>
> </xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
> <xsd:element name="contaBindUsername" type="xsd:string"
> minOccurs="0">
> <xsd:annotation>
> <xsd:appinfo>
> <a:indexed>true</a:indexed>
> <a:displayName>Nome do usuário AD de bind</a:displayName>
> <a:displayOrder>110</a:displayOrder>
> </xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
> <xsd:element name="contaEcmUsername" type="xsd:string"
> minOccurs="0">
> <xsd:annotation>
> <xsd:appinfo>
> <a:indexed>true</a:indexed>
> <a:displayName>Nome do usuário de ECM</a:displayName>
> <a:displayOrder>120</a:displayOrder>
> </xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
>
> </xsd:schema>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6278 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240823/4d8b3d07/attachment-0001.bin>
More information about the midPoint
mailing list