Object is being written although is marked as "read only"

Hi
I've created a simple on-to-one mapping under the toplink workbench.
I've marked the associated object as read only but the following code rights the object into a database:
uow.registerNewObject(objectA);
uow.assignSequenceNumber(objectA);
ObjectB objectB = createObjectB(objectA.getId());
     objectB.setRelated(objectB);
uow.commitAndResume();
The objects are associated through the primary keys,
and objectB is lazy loaded using ValueHandler method
BR.
Pawel Farid
Message was edited by:
pafawa

Good domain model emphases the importance of immutable objects.
However, having immutable objects doesn’t mean that new one will not be created or old one deleted, just that existing one will not be modified.
We need a way in TopLink to be able to handle this very common use case.
Right now, if the descriptor is read-only and I register a new instance, the instance is not persisted. If I use InsertObjectQuery and call uow.executeQuery TopLink throws an exception.
Please advise how I’m supposed to use TopLink with immutable objects?

Similar Messages

  • Any difference in signature lock function, read-only field property, & signed tab "Mark as read-only

    Is there any real difference between
    1) simply setting a field to read-only in a custom script on the Signed tab of a signature field by:
    this.getField("field name").readonly = true;
    2) including the field in the "Mark as read-only: " list of fields on the Signed tab of a signature field
    and, 3) including the field in a call to the setLock() method of a signature field?
    As far as I can tell there isn't, but am I missing something? And if they are all the same, then since setLock() must execute in a priviledged context, it seems the harder way to get a read-only field.

    Hi Ron,
    It certainly sounds like you are on the right track.What version of Acrobat are you using, is it Pro or Standard, Mac or Win? I see where you mentioned the file was created in Acrobat X, but I'm not sure that the app that create the PDF file is the same version as the one you are using for editing.
    Steve

  • Signing: Empty list in "Field Selection" when picking fields to mark as read-only on signing

    I have a PDF form with some signature fields. I am attempting to mark some of the fields in the document as read-only when the document is signed. This is what I did:
    1. Modify the "Signed" properties of the signature field.
    2. Choose "Mark as read-only" and "Just these fields" in the drop down list beside this option.
    3. Click on the "Pick" button to select the fields to be marked read-only when the user signs this field.
    In the "Field Selection" dialog that comes up, nothing is shown in the list.
    Am I doing something wrong? Is there something I need to do to add fields to this list, or should it be populated automatically allowing me to choose what I want?
    I noticed this feature is only available for Acrobat 6.0 and later. The compatibility level for the document I created is 1.6 (Acrobat 7 and later). It is created in Acrobat X.
    Just figuring my way around these things. Did a google search for any solutions, but couldn't find anything on this.
    Any help would be greatly appreciated.
    Thanks,
    Ron

    Hi Ron,
    It certainly sounds like you are on the right track.What version of Acrobat are you using, is it Pro or Standard, Mac or Win? I see where you mentioned the file was created in Acrobat X, but I'm not sure that the app that create the PDF file is the same version as the one you are using for editing.
    Steve

  • Mail, how to move and "mark as read" only copied mail?, Mail, how to move and "mark as read" only copied mail?

    Hi, I need a help to make a folder-backup (using a limited-size Exchange mailbox ... )
    Is there a way, using Rules/Filter for Mail to:
    copy a mail to a specific folder
    mark as read only the copied mail
    If I write this rule, the mail is copied, but both mail are mark-as-read and I cannot find what I need to read.
    Thanks.

    But this marks the message as read also in Thunderbird.

  • Is it possible to mark as read only an item instance?

    Hi friends,
    in Apps R12,.. imagine you have a multirecord page.... (10 rows i.e.)
    I would want to mark as read only the first item (or the item that would be not null) of the first row as read only... but.. the others items in the same column would be not readonly... (really they are the same "item", but not the same "Instance"....
    It would be the same as in forms.. do a set_item_instance_property
    Any ideas?
    Thanks

    you can use SPEL expression to achieve this.
    Create a new boolean attribute in your VO.
    In getBooleanXXX() of VORowImpl write your readonly logic. Return true if you want to make it readonly, false if not.
    In the Page -> table -> Column's, set the Read Only property to ${BooleanXXX}.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I have a FAT 32 External Hard Drive marked as Read Only that is unchangeable by an administrator or root user, how can I make it read/Write

    Hello, All,
    I have a FAT 32 External Hard Drive marked as Read Only that is unchangeable by an administrator or root user, how can I make it read/Write without reformatting it ? 

    Hi Kappy,
    Just wondering if you had any advice for my situation . . .
    My time machine backup was backing up to a drive that was "Mac OS X Enteded Journaled, Case Sensitive."  I had no idea what this meant, or that it would even cause issues.
    I took my computer to the Apple store yesterday, and they wiped it clean.  When they tried to restore it from the Time Machine backup drive, it would not work.  Their guess is that Time Machine cannot restore from a drive that is "case sensitive."
    Any thoughts on how I can convert my time machine backup data from a "case sensitive" state, to a "non-case sensitive" state?  I've tried to just drag and drop the files from the case sensitive formatted drive to a new drive that I have that is formatted non case sensitive, but I get the following error message:
    "The volume has the wrong case sensitivity for a backup"
    I just really want my data back - I thought TimeMachine was the way to go (and was supposed to work) but unfortunately it is not.
    Any help you can provide would be greatly appreciated.
    Thanks,

  • Grid View: Flags, Rating, Color Label read only? / Mark Images Read only?

    Hi
    I'd like to see the flag-status, rating and color label assigned to an image as cell icons. But if I show them as Cell Icons, I am also able to change them, which happens to me quite often accidentally when I click into the frame of a image to change selections.
    Is it possible to show these markers for each image without being able to change them in the frame? I would be quite happy being able to change them from the tool bar, but still being able to see them on the single image.
    Related to this:
    Is it somehow possible to mark images as read only, so that further changes (development, metadata etc.) can be made impossible? This would be nice for older images, which have been processed completely and should stay that way, inhibiting accidental changes to images. Sometimes it is difficult to even notice when one accidentally changes metadata on an image.
    Thanks for your thoughts
    Beat Gossweiler
    Switzerland

    Yes it's a bug. I see it on Mac platform.

  • Read only af:inputText being rendered as "span" instead of read only input

    I am using JDeveloper 11.1.1.6.0
    I have noticed that when using components such as "af:inputText" and "af:inputDate" with the "readOnly" attribute set to true, the resulting render is a label as a "<span>" element as opposed to a read only <input> element which I would have expected. I see the expected behavior if I utilize the JSF "h:inputText" component with "readOnly" set to true, however I cannot utilize the JSF component as it does not appear as though I can get "autoSubmit" behavior to work with the JSF component so that will not work. To add on to the oddness of the behavior, if the af:inputText has its Rows attribute set to be greater than 1, it will render as a read only <input> element as opposed to a label.
    In addition, the af:inputText's default readOnly form looks glaring when using the simple skin or other skins based on simple. It adds a box that wraps around the exact length of the text in the inputText as opposed to the amount of area that the inputText would have consumed if it was not in "readOnly" mode.
    Is there any way to properly get the af:inputText to render as a read only input as opposed to the label that it is currently being displayed as?
    Thank you.

    Hi,
    its a decision made by the component renderer. If this is a problem for you and if you have a customer support contract then you could file a service request for a change.
    Frank

  • How do I resolve: Field Selection dialog [Pick... button] in "Mark as read-only" section of Signed tab for Digital Signature field is not working

    I am using Acrobat Pro X on Windows 7 Enterprise x64 to create a form. When I have a simple form with a few fields, I am able to use the "Pick..." button to select the fields I want to select, but in a more complex form (20 fields with 3 Signature fields) The Field Selection dialog does not work. I can make the selections, but they are not saved. Removing fields does not resolve issue. IF I start with a blank form and add a few fields, the dialog will work, but after adding more, it quits working. Reader XI is also installed.

    And that is why many responders use only the custom JavaScript calculation option.
    The UI for the select fields and simplified field nations are only a way to pass field names to a JavaScript function that performs the actual calculation. Sometimes these functions call other functions and pass the parameters can lead to errors in the attempted code.
    I would start to learn code JavaScript for Acrobat.
    The pick field dialog is for performing calculations involving sums, products, averages, minimum, and maximum. I am not sure how that would work with a digital signature. Once a signature is applied the form fields could be locked.

  • External hard drives randomly marked as read only

    I have a few External Hard drives (the two I care about the most are Seagate brand and fairly new).  Both of them have been set up for Mac use only and never gave me any issues on my older Mac and were used frequently.  I just recently got a new Mac.  I hooked up my hard drives, denied the Time Machine pop-up, and copy my work onto my new computer.  Though I was able to copy my work to my new computer, I couldn't move files on my external hard drive anymore nor could I add new files (back-up work) to the hard drive.  Not sure if it's just the new computer or rejecting the time machine pop-up, but my external hard drives can no longer back up my work.
    Anyone know what the issue is here?  I browsed these forums for a bit and it seems like the common solution is to unlock it or repair the disk.  Both task I am very familiar with; however, I don't get the option.  There is no lock icon for me to click to unlock and repair the disk (as well as all other options in the disk utilities) is greyed out for the external hard drives.  If anyone knows whats going on here, I'd greatly appreciate it. Thanks!

    machumpo wrote:
    Not too thrilled that it is going to wipe the hard drive (and I prefer to avoid third party when possible), but I will give it a shot. 
    What you can do is use another external drive formatted to your requirements and copy the data from your current one to it.  Then do the reformat.  Also if you have the space on your MBP internal drive, copy the drive data to it, format the drive and recopy the data back to the reformatted drive.
    Any chance you know how my external hard drives magically changed formats?
    I cannot assist you there.
    Ciao.

  • External HDD rack unmounts when being written to

    I have a small HDD rack (4 bay, 2TB max per bay, 3.5" Sata) connected to my iMac via USB 2.0.
    I've had it nearly a year, and it worked fine always. I store my media on a 2TB WD (no partitions) drive that's in it, and documents on a 750GB WD (3 partitions) drive that's also in there.
    However, in the last couple of days, it keeps randomly unmounting itself when it's being written to, and almost instantly remounts. The thing is though, it unmounts all partitions on all disks, not just one random disk having trouble with being written to. I can't understand how the whole rack dies when being written to.
    Also, currently the only way I can replicate it is by downloading a file using something like Vuze directly onto the drive, and this makes it unmount itself within seconds of starting the download (have also tried several different files in case it was a corrupt file causing it). Copying normal files across doesn't seem to cause an issue. Finally, when it's not being written to/downloaded to or whatever, it can be on for days and never have a problem or unmount itself, whereas if I try and download something to it, it unmounts constantly.
    Please help it's getting really irritating not to mention I'm worried about the risk of corrupted data.
    Forgot to mention, disk utility says everything is in order.
    Message was edited by: markytizz (re: disk utility)

    Try doing a SMC reset, it might take care of it.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • ITunes Keeps Freezing, Music Folders Keep Being Marked Read-Only???  HELP!!

    Recently I have been completely unable to access my iTunes for more than 15 seconds before it freezes up and I have to end the program. When I checked the properties for my My Music folder and my iTunes Music folder (and all the folders within these folders), I noticed that the Read-Only box is marked - not checked, but filled with another, smaller box.
    When I uncheck the read-only box on all the folders and go back up to the My Music folder, I check the properties and notice that it is STILL marked as Read-Only. This is driving me completely insane, as I can do NOTHING with my iTunes without it freezing. Can someone please help me out???

    It's normal for folders to be marked read only, what ever your problem is, it is not this.
    Have you seen this article on troubleshooting freezes:
    http://docs.info.apple.com/article.html?artnum=302856

  • Marking Fields as Read-Only After Digitally Signing Issues

    I am creating a PDF form that contains several digital signatures.  I am selecting a signatures and am in the property options for that specific signature looking at the "Signed" tab.  I select, Mark as read only, than choose "Just these Fields.
    When I select "pick" a new box opens that lists all the fields in my form with a check box next to each.  It appears that I can select the fields I want to mark as read only, however, when I attempt to check a box, nothing.  I can select "select all" and all the firlds become checked, but I cannot check individual fields.
    Any thought on what might be going on?

    Hi Thomas,
    Any chance you could share the PDF file if I gave you an e-mail address?
    Steve

  • How do you set Mail to mark a message as "read" only when you open it

    I'm using Apple Mail. Works great, but I have one big issue I can't figure out. I want my messages to be marked as read ONLY if I double click or actually physically open the message....not when I click it once with the mouse or if it gets selected in the inbox message pane. The way it's set up, all my mail is read the minute I click on it. This is extremely annoying and I can't find anywhere where you can set this preference. HELP.
    does this make sense to anybody??
    OSX Tiger 10.4.7

    The OP's question makes sense and Scott's comment is correct. You can have Mail setup so that there is the list of folders on the left, the list of emails in that folder in the top right hand side and the selected message in the pane below that on the lower right hand side. In that case clicking on a message in the list of messages will display it below and Mail will deem you to have read it. On the other hand if you drag down the divider and get rid of the pane in which the message displays then selecting it does not mark it read. Double-clicking it should bring it up in a new window and cause the message to be marked read.
    Basically Mail marks the message read when it has displayed (some of) the message in some place (ie a separate window or the lower right hand side pane) where you could have read it
    Michael

  • "ORA-21700: object does not exist or is marked for delete" select from ADT

    Posted this in OLAP section as well, but since this is Object technology, I thought I would repeat it here. Sorry about the duplication.
    BTW, I'm using Oracle9i 9.2.0.4.1.
    I'm trying to create a script that can automate the process of generating abstract data types for use in an OLAP_TABLE function. I'm following the examples in the documentation. Everything runs great the FIRST time I run my script, but when I drop my types and re-create them, when I run the next SELECT statement against the OLAP_TABLE function, I get:
    ERROR at line 1:
    ORA-21700: object does not exist or is marked for delete
    My script drops the ADTs before creating, but somehow they are not REALLY being dropped.
    SET ECHO ON
    SET SERVEROUT ON
    DROP TYPE ts_table_6;
    DROP TYPE ts_row6;
    CREATE TYPE ts_row6 AS OBJECT(
    CONJ2002 VARCHAR2(400),
    CONJ2002_DATA number(16),
    PERIOD VARCHAR2(10),
    PERIOD_NAME VARCHAR2(20));
    CREATE TYPE ts_table_6 AS TABLE OF ts_row6;
    SELECT CONJ2002, period, period_name, conj2002_data FROM TABLE(OLAP_TABLE(
    'REFVLMTA DURATION QUERY',
    'ts_table_6',
    'limit CONJ2002 to first 3',
    'MEASURE CONJ2002_DATA from CONJ2002.DATA
    DIMENSION CONJ2002 from CONJ2002
    DIMENSION PERIOD from PERIOD WITH
    ATTRIBUTE PERIOD_NAME from period.name'));
    Again, it works the first time, but not the second time. I need to bump up the ADT names to ts_row7 and ts_table_7. SQL Plus says the types are being dropped.
    Any ideas?
    Dan Vlamis [email protected]

    Hi Dan
    What append if you do a connect between the DROP and the CREATE statements?
    Chris

Maybe you are looking for

  • Can't access "Range Retrieval" & "Butterfly report" features in smart view

    Hi Experts, I need your help regarding enabling new features of smart view. I am not able to use the following feature of smart view: - Range Retrieval - Butterfly report Do I have to configure any settings to enable this feature?? Currently I am usi

  • Pur Req via Plant maintenance order

    Hi, When Non stock item is assigned to a Plant Maintenance order, A purchase requisition is created automatically for that item. During the creation of purchase requision it is required to enter goods recipient and unloading point( few fields are mad

  • Save as/Save does not point to file open location for the file

    Hi, Working with large number of files it's imperative that I can rely on the software's ability to know where open files are located on disk, so that when needed I can save all open files to their original locations. Unfortunately CS6 wil save all o

  • Inserting text into existing text in Powerpoint

    Hi I have a text like "I have included xxx in the quote." in a slide. How can I insert text such as '8 items per head' in place of xxx via code? Thanks Regards

  • What is  the program in Oracle?

    Hi all. I ve just started with Oracle and now I am using Oracle SQL Developer tool. I have a question are there any graphical windows, buttons and another GUI staff? Thanks.