Problem mapping collection of enums

we get the following error:
org.apache.openjpa.util.MetaDataException: Type "class com.project.model.util.enumeration.HaeftelseSaerligeLaanevilkaar" is an enumeration and therefore cannot be made persistent.
we are using the following annotation:
@javax.persistence.Enumerated(javax.persistence.EnumType.STRING)
@org.apache.openjpa.persistence.PersistentCollection(elementEmbedded = true)
private java.util.Collection<com.project.model.util.enumeration.NoteringsType> noteringerCollection = new java.util.HashSet<com.project.model.util.enumeration.NoteringsType>();
noteringsType is a standard java 1.5 enum
Are we doing something wrong?

Hey jsutherl,
Thx for your help.
I decided to give EclipseLink a shot. After adding @BasicCollection, @CollectionTable, and @Converter, i was hoping to see a special collection table generated in the database for my Permission Enum. But instead nothing more than a Blob column was created. Did I do something wrong?
@Entity
@TypeConverter(
     name="StringToPermission",
     dataType=String.class,
     objectType=Permission.class
public class AccessLevel extends PersistentDomainObject implements Comparable<AccessLevel> {
     @Column(nullable=false, unique=true)
     private String name;
     private String description;
     @Column(nullable=false)
     private int rank;
     @Column(nullable=false)
     private boolean admin;
     private ArrayList<Permission> permissions = new ArrayList<Permission>();
     * @return the permissions
     @BasicCollection(
     fetch=FetchType.EAGER
     @CollectionTable
@Convert("StringToPermission")
     public List<Permission> getPermissions() {
          return permissions;
     * @param permissions the permissions to set
     public void setPermissions(ArrayList<Permission> permissions) {
          this.permissions = permissions;
I also tried the above without the converter, on the field instead of the method, etc. In every single instance no special collection table was generated.
Thx!

Similar Messages

  • Help me please : Serious problems with collection-mapping, list-mapping and map-mappi

    Hi everybody;
    I have serious problems with list-mapping, collection-mapping and map-mapping.
    Acording to specifications and requirements in a system I am working on it is needed to
    get a "list" of values or an indivudual value.I am working with ORACLE 9i Database,
    ORACLE 9i AS and ORACLE 9i JDEVELOPER.
    I tried to map a master-detail relationship in an entity-bean, using list-mapping.
    And this was very useful in order to get a "list" of details, ...but, when I wanted
    to get a single value I have some problems with persistence, something about "saving a state"
    despite I just want to get the value of a single detail.
    I decided to change it to map-mapping and the problem related with a single detail
    worked successfully, but I can get access to the whole bunch of details.
    May anyone of you help me with that?
    I am very confused I do not know what to do.
    Have any of you a solution for that problem?
    Thank you very much.

    Have you tried a restore in iTunes?

  • How to map a custom enum list to a custom form property in an extended incident class

    Hi,
    I'm struggeling to understand how to map a custom enum list to a custom form property in an extended incident class.
    Here's what i want to have happen:
    I am going to publish a request offering on my SMPortal for allowing users to submit basic IT incidents. I want the form to include "Whom does this problem affect" (answers(This is the custom enum list): Me, Multiple Users, Whole department or Whole
    company), "What is the problem about", "Description" and "Attachments".
    Here's what i've done:
    In the authoring tool i created a MP for the custom enum list and put only the list in it. I sealed the MP and imported it.
    I created another unsealed MP called TST.Incident.Library for storing incident library customizations and extended the incident class to add an extension class i called ClassExtension_Affected scope with a custom property i called AffectedScope. Then i am trying
    to set the datatype of this property to "list". In the "select a list" dialog i cannot chose my previously sealed MP with the custom enum list in it. Why?
    - Do i need to scratch the sealed MP and put the custom enum list in the latter TST.Incident.Library MP instead?
    - If so, can i do that and keep this MP unsealed, or will i get an error on import saying "Unsealed management packs should not contain type definitions"
    - Should i create one sealed MP for both the custom enum list and the extension class + custom property?

    Hi,
    Authoring Tool simply isn't informed about your list. Open the sealed management pack where you define the root of the list in the Authoring Tool and in the same time open TST.Incident.Library. You will have two opened MPs in the Authoring
    Tool and be able to add a custom list for your custom field.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
      LinkedIn:
      Facebook:

  • Problem mapping USB external drive connected to Airport Extreme on my PC

    I am having a problem mapping my USB external drive in my PC running WIndows Vista.   Here is what I have so far:
    USB External Drive connected to my AirPort Extreme which is connected to my Century Link modem/router.
    I have installed the USB drive using the Airport Utility.  In the Disks section the Enable File Sharing is checked, Secure Shared Disks is set to With a Disk Password, I have entered the password in the next 2 rows, and finally AirPort Disks Gues Access is set to Not Allowed.  The section below named These Settings Configure Windows File Sharing is empty.  Am I supposed to put something here?
    I was also told I need to map the drive in my PC, but when I go to do that via the Computer and the Map Network Drive, I get stuck where it asks me to enter a folder name.  I read many of the posts which tell me I need to enter among other things the disk's ip address, but I am unable to find it anywhere.  Where do I find what to put here?
    Can someone please help this frustrated user?

    I had my USB drive on my APE working with Time Machine under 10.5.1 very reliably. A few days ago however, I needed to suspend a backup operation, and when I came back to restart it, time machine refused to mount the disk image on the drive. After several attempts to get it to connect with no luck I decided to delete the image (the sparce image file) and start over. Now TM refuses to create a new image.
    BTW, on the Mac OSX hints site there have been suggestions to start a backup with the drive directly connected, then stop the backup, move the sparce image file to the root of the drive, reconnect the drive to the APE base station to get it working. I tried this again, but I think Apple has changed something in 10.5.2, because when directly connected TM no longer creates a sparce image file.
    Anybody else seen this behavior after upgrading to 10.5.2?

  • Problems mapping 2 messages into 1

    Hi.
    I'm facing a problem mapping 2 messages into 1.
    I have a BPM that has 2 abstract messages. In a transformation step, i transform this two messages into one but when i check the IDOC that finally has arrived to R3 backend, the fields that belogns to one of the source messages doesn't appear.
    In message mapping i select the two source messages and the target message and the same in interface mapping.
    Because is a transformation step inside the BPM, i can't see in SXI_MONITOR what's happening.
    any idea of what's happening?
    Regards.
    Inigo.

    Inigo,
    Though its in BPM u can where well test the transformation mapping
    wht are the messages going in what is coming out
    Check How to monitorcc BPM
    https://websmp206.sap-ag.de/~sapdownload/011000358700003141152005E/HowToMonitorccBPM.pdf
    This PDF is very handy
    Regards
    Kavitha

  • Problem mapping JDO to an existing DB schema

    I'm having problems mapping a legacy database to JDO. Suppose I have a class
    public class Test {
    public int pk;
    public String fieldA;
    public String fieldB;
    public String fieldC;
    An existing legacy table TEST looks like
    TEST
    |============|
    | PK | ... |
    |============|
    | 1 | ... |
    |============|
    The fields values are stored in a separate table
    TEST_FIELDS
    |==========================|
    | PK | FIELD_ID | VALUE |
    |==========================|
    | 1 | 1 | fred |
    | 1 | 2 | accounts |
    | 1 | 3 | jim |
    | 2 | 1 | wilma |
    | 2 | 2 | research |
    | 2 | 3 | alice |
    |==========================
    So the value for fieldA of an object with key i in the TEST table
    would be found in the TEST_FIELDS table with key (i, 1), fieldB with
    key (i,2) and fieldC with (i,3) and so on. I'm not sure how I would express
    such a mapping in the JDO metadata file, or indeed whether this is
    even possible. Any suggestions?

    This mapping is not possible in the current incarnation of
    Kodo.

  • SB Live! 5.1 problem mapping effect to midi controllers

    Hi, I have a SB Li've! 5. and I am having problems mapping effects to the midi controller in the EAX Control Panel. After doing some searching it seems that you can only map 2 effects, to a controller, at any time (which is disappointing), but it seems that for some reason, I cannot even do that, it seems to only allow me to map one effect to a controller at any time.
    For example (In EAX Control Panel (AudioHQ) on the Midi tab) I have the following:
    Original Sound: Not mappable
    Reverb: Not mappable
    Chorus: Default
    Echo: Not mapped
    If I go and try to map Echo to a controller, Chorus changes to "Not mapped", and vice-versa (same with additional effects) thus I can only map one effect at a time.
    Anyone know what the problem is? (and why is Reverb Not mappable? which probablly has something to do with the problem)Message Edited by Russ on 0-3-2005 2:20 PM

    BTW: Not sure what the actual model name of the sound card is, (it said Sound Blaster Li've! 5. Digital on the box), but the model number is SB0220.
    Also, I forgot to mention that this is on Windows XP Professional.

  • Problem with Collective billing

    Hi,
    I have problem doing collective billing for one of my sales order that consist of 2 item, one is a TAN and the other is a TAS. Because of the different business process, i have to combine the billing of a delivery note (for the TAN item) and the sales order (for the TAS item) into one invoice. However when i do so, i end up with 2 invoices. Pls advise.
    Just wondering if the BlCat is different, can the invoice be combine?

    Hi,
    Invoice split will happen if you have any of the following values are different.
    1.Payer
    2. Inco Terms
    3. Payment Terms
    4. Shipping Condition
    5.Country
    6.Transportation Group
    7. Exchange Rate
    Click on the Split analysis.You will come to know why the splitting is happening.
    The procedure for this split analysis is:
    Goto the T.Code "VF02".
    Enter the number of the first billing document that you want to compare. Click on  Environment --> Split analysis.
    Enter the number of the second billing document which you want to compare to the first in the dialog box given.
    Click on "Continue".
    The system displays the Billing document split analysis log.
    Regards,
    Krishna.

  • Problem in collections:

    I am having a a problem here:
    Map<Integer, String> map = new ArrayList<Integer, String>();
    Collection<Integer> keys = map.keySet();
    for(String id : categories) {
         if(Collections.binarySearch(keys, Integer.valueOf(id)) > 0) { some code...}
    While compiling i am getting the following compile time error:
    AuthorProfileSaveEditAction.java:165: cannot find symbol
    symbol : method binarySearch(java.util.Collection<java.lang.Integer>,java.lang.Integer)
    location: class java.util.Collections
    if(Collections.binarySearch(keys, Integer.valueOf(id)) > 0) {}
    ^
    Can anyone help...

    I think this statement is also causing trouble:
    Map<Integer, String> map = new ArrayList<Integer, String>();
    You can't convert ArrayList to Map and ArrayList doesn't have a 2 argument constructor. You are mixing 4 types of collections!

  • Problem Mapping Deep Structure to Flat Structure

    Hello,
    I hope someone can help me.  My scenario is idoc to file.  I am collecting many idocs with a bpm and writing them out to one file.  My bpm is working great, but my mapping program is not working properly.  My source message is a deep structure and my target message is a flat structure. 
    See my example message formats below.
    Source message:
    zmessage (1..1)
    +zidocmessage (0..unbounded)
    ++zidoc       (1..1)
    +++zidocheader (1..1)
    ++++zidocitem  (0..unbounded)
    Target Message:
    zmessage (1..1)
    +zfilemessage   (1..1)
    ++zfilefirstrec (1..1)
    ++zfileheader (1..unbounded)
    ++zfileitem   (1..unbounded)
    I need to map zidocheader to zfileheader and zidocitem to zfileitem. 
    The Source Data:
    <zmessage>
      <zidocmessage>
        <zidoc>
          <zidocheader>
             <hfield1>hf1</hfield1>
             <hfield2>hf2</hfield2>
             <zidocitem>
               <ifield1>if1</ifield1>
               <ifield2>if2</ifield2>
             </zidocitem>
             <zidocitem>
               <ifield1>if1</ifield1>
               <ifield2>if2</ifield2>
             </zidocitem>
          </zidocheader>
        </idoc>
      <zidocmessage>
        <zidoc>
          <zidocheader>
             <hfield1>hf1</hfield1>
             <hfield2>hf2</hfield2>
             <zidocitem>
               <ifield1>if1</ifield1>
               <ifield2>if2</ifield2>
             </zidocitem>
             <zidocitem>
               <ifield1>if1</ifield1>
               <ifield2>if2</ifield2>
             </zidocitem>
          </zidocheader>
        </idoc>
    </zmessage>
    The Target Data:
    <zmessage>
      <zfilemessage>
        <zfilefirstrec>
          <firstrecfield1>ff1</firstrecfield1>
          <firstrecfield2>ff2</firstrecfield2>
        </zfilefirstrec>
        <zfileheader>
          <hfield1>hf1</hfield1>
          <hfield2>hf2</hfield2>
        </zfileheader>
        <zfileitem>
           <ifield1>if1</ifield1>
           <ifield2>if2</ifield2>
        </zfileitem>
        <zfileitem>
           <ifield1>if1</ifield1>
           <ifield2>if2</ifield2>
        </zfileitem>
        <zfileheader>
          <hfield1>hf1</hfield1>
          <hfield2>hf2</hfield2>
        </zfileheader>
        <zfileitem>
          <ifield1>if1</ifield1>
          <ifield2>if2</ifield2>
        </zfileitem>
        <zfileitem>
           <ifield1>if1</ifield1>
           <ifield2>if2</ifield2>
        </zfileitem>
      <zfilemessage>
    </zmessage>
    Can someone advise me on how to map this correctly?
    Thank you,
    Rhonda

    Hello,
    Can someone please help me with this problem?
    I am at the point where all of the records in my source message are being written out, however, all of the header records are together and all of the line item records are together.  So, the target message is not in the proper sequence.  It should contain the header record, then item records, header record, then item records, etc. 
    Is there anyone that can help me with this issue?
    Thank you,
    Rhonda

  • Unable to map Collection Objects in BPM11g

    Hi,
    I am polling DB for triggering an instance in the process it is creating a Feildcollection object under
    Business Catalog -> types -> FeildCollection.
    when i am trying to map the object i need to map to another collection object itself.
    In the process I am not able to map the elements of it.
    Any help is greatly appreciated!!

    I think you have understood my question partially,
    When i go for transformation option, I am not given the option of other objects other than a collection again.
    Like for example In my project if I have three objects one made of DB adapter another of File adapter and the last one pointing to the .xsd(BasicObject) to which these two collections are pointing to.
    Script activity -> Implementation -> Use Transformation... Edit -> In the transformation output tab If i go for create option. In the Sources drop down I am given with only two options one with File Adapter collection object and another with DB adapter collection object. If i map it to a collection object again i will not be take out individual elements. According to me i need to map it to the root "Basic Object" only then i get the access to individual elements.
    My problem is even if i go for transformation option I am not able to map to individual elements from collection object.
    Regards

  • Problem with collection names getting replaced when creating new collections in Photoshop Elements 5.0

    We have been using Photoshop Elements 5.0 a lot lately to organize many photos into collections.  A new problem just arose when creating a new collection.
    As we named the new collection and clicked on "OK" it replaced another existing collection with the new name.  The photos from the old collection were still there but now under the new collection name.  This happened at least three or four times, each time a different "old" collection was renamed.  Does anyone know why this would happen?
    This past week we have added at least 20 new collections with no problem prior to this.  Adobe actually had to shut down when this happened.  Each time we reopened Adobe it would happen again randomly renaming a different "old" collection when we tried to add the new one.  Any insights would be much appreciated.

    Thank you - that was the problem and now it is working correctly
    again!
    Tom Z.
    >>> saurabh288 <[email protected]> 05/24/09 4:23 AM >>>
    It may be that the catalog has been corupted.Try repairing the
    catalog of PSE.

  • Problem mapping inputText field to a variable in a data control

    I have encountered the following problem. Please help. Any feedback is appreciated.
    I have a page that contains first name, last name, address, city, state zip and country input text fields and a submit button. When the submit button is clicked, user entered information will be commited to database. This is easily achieved by using a managed bean.
    Now I would like to achieve the same functionality by using data control. The reason I want to use data control is to avoid putting the controls (first name, last name, address, city, state zip and country) in the managed bean. I was hoping that they can be directly mapped to the data control variables. The data control is created from a Java object which contains attributes of first name, last name, address, city, state zip and country. The data control is dragged and dropped to a jsff page and the jsff looks like the following:
    <af:inputText label="First Name"
    value="#{bindings.firstName.inputValue}"
    required="true"
    maximumLength="25" autoSubmit="true"
    id="it10">
    </af:inputText>
    When I run the page, I can see the label First name but the input box was not shown. So I removed: value="#{bindings.firstName.inputValue}" and the input box appears.
    Why did that happen? Can I directly map a data control attribute to an input text field?
    Thank,
    Cecilia

    Thanks for the response, Shay. Really appreciate it.
    I tried your first solution - modified the property IsUpdateable to Updateable. However the input text box is still not appearing.
    My java class is just a simple Java class. In the class all I have is just a get method for a domain model object.
    In the jsff, if I assigned a value to the value attribute (value="Jane"), the input text box would appear as updateable.
    Any idea?

  • Problem Mapping to ABAP Proxy

    Hello,
    I Have a very strange error.
    So i send a Message from Java Proxy ->to-> ABAP Proxy.
    The Mapping is a XSLT Mapping.
    The Mapping everthings fine but the ABAP Proxy get and error like:
    Error during XML => ABAP conversion (; error ID: ; ( ))
    ....CREATE_TRANSACTIONS(1)IT_TRANSACTION(1)item(1)OPERATORQUAL(9) Error Text: Data loss occurred when converting 9134408  Kernel ErrorId: CONVT_DATA_LOSS))
    Ok the error is normally not so strange, but in my XML Message the tag OPERATORQUAL is empty. The 9134408 ist the last filled tag for the OPERATORQUAL.
    Why the ABAP Proxy think there is something in ?
    I checked the XML and there is nothing.
    But when the proxy think there is something like 9134408 that the error is normal, because the field has only except only 1 Char Values.
    Any Idea whats going wrong?
    Regards,
    Robin

    Hi Udo whats up ? ,
    Mappings all works fine.
    Problem was that blanks was there in the XML Tag that you can't see in the XML view.
    This blanks came already from Database.
    Know i kill all blanks in XSLT Mapping and it Works !
    see you soon and regard from zagreb,
    Robin

  • BPM problem: mapping in a transformation step

    Hello,
    In my current BPM scenario....
    1)I created the interfaces below for the Receive step (receives MT_Request):
    -MI_async_BPM
    -MI_async_abstract
    2)Then I created the interface and mapping for the transformation step:
    -MI_JDBC_async_abstract
    MM(MT_Request to MT_Request2)
    IM(MI_async_abstract to MI_JDBC_async_abstract)
    3)Then I created the interface and mapping for the Send step:
    -MI_JDBC_async_in
    MM(MT_Request2 to MT_DB_Insert)
    IM(MI_JDBC_async_abstract to MI_JDBC_async_in)
    Problem:
    However, after I executed the scneario, it appeared the step 2) didn't go through correctly(error message:<b>NO_RECEIVER_CASE_ASYNC</b>).  Did I set up the configuration wrong in Integration Process?
    Also, I went back to ID to create a Receiver Determination for step 2) (thought this may clear the problem), but in the Sender tab of Integration Process object, MI_async_abstract was not in there.  Please give me a hand on this problem.  Thanks.
    Regards,
    Steve
    Message was edited by: steve peng
    Message was edited by: steve peng

    Hi Steve,
    Below is the explanation for correlation by Anand Torgal which i think will be helpful to u....
    To explain you the correlation in simple terms...take a simple example of BPM with a send step(async request) and receive step(async response). I am sending a PO request using the send step and waiting for a PO response using the recieve step. Assume that i have two instances of this BPM running i.e two PO request's going simultaneously. when i get the response back for these two requests , there will be two recieve steps waiting for the response since there are two instances of BPM running. the response need to be assigned the corresponding requests. This is where correlation comes into picture. I can use PO number as my correlation field. i.e I activate my correlation in the send step and use this correlation in receive step (this is configurable in BPM).
    Example: PO number needs to be part both request and the response message structure.
    BPM instance1:
    send step -> activate correlation -> send message with PO Number1
    Receive step -> use correlation -> receive response message with PO Number 1.
    BPM instance1:
    send step -> activate correlation -> send message with PO Number2
    Receive step -> use correlation -> receive response message with PO Number 2.
    There are many different scenario's whre you can use the correlation..this is one of them...The weblog shows another way of using correlation.
    Also Refer SAP help...
    Correlating Messages
    Use
    You use a correlation to assign messages that belong together to the same process instance. A correlation joins messages that have the same value for one or more XML elements. A correlation is therefore a loose coupling of messages: at design time, it enables you to define which message a receive step must wait for, without knowing the message ID.
    For example, in a process, receivestep_1receives the message purchaseorder, while receivestep_2receives the message salesorder. Receivestep_1creates a correlation that defines that the corresponding sales order must have the same purchase order number. Receivestep_2uses this correlation. This means that an instance of the process processes a purchase order and the corresponding sales order, which has the same purchase order number.
    If it satisfies the relevant correlations, a message can be processed in multiple processes. However, a message is only delivered once per process.
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/64373f7853494fe10000000a114084/content.htm
    Regards,
    Abhy

Maybe you are looking for