How to annotate non-persistence fields?
Hi,
I am using TopLink Essentials as my JPA provider. I have few objects where I don't have a mapping of fields on the object to the database columns. Basically I would like to use few fields in the object to create some behaviour and doesn't want to persist or query. By default, TopLink is reading all the fields and mapping them to the table I defined and I am getting the "Invalid Identifier" errors. Is there a way I can tell TopLink to ignore certain fields in an Entity class for the persistence. I have used the @Column annotation for all my fields that are in the DB to map. Can I use any annotations for this purpose or any other ways to achieve this? I do not want create separate subclasses just for 2 or 3 fields that I use. Your help is appreciated.
I just found out that I can use @Transient. Problem solved.
Similar Messages
-
How to create non editable fields in OIM?
Hi ,
I would like to know about the creation of non-editable fields in OIM.
Thanks in Advance.Hi,
Where do you want to create this field? (Create User Form, Process Form....).
If your requirement is to do it in the Create User Form, or Self Register or Edit Profile... You have to edit the FormMetadata.xml file. There are many posts in the forum of how to edit this file but ask if you need any help. -
How to make non editable field after requestor created the shoping cart
Hi,
i need to make non editable field (Price field) after requester created the shooping cart.The field should be non editable only for requster .
this i need to make when workflow triggers when the buyer sends back the shopping cart to requester.
one solution which i found:depend on the status of the shoping cart
but i dont know whether it is correct way.
if not please suggest me the solution.Hi,
You can implement the BADI" BBP_UI_CONTROL_BADI".
You can check for the role of the user who has logged in(e.g. for user REQUESTER,there will be a distinct role to idnetify that the user is a requester) and then acc set the display properties for the field PRICE.
For sample code pls refer the foll links:
Sample code for BBP_UI_CONTROL_BADI
Re: Hiding Shopping Cart Fields in SRM 3.0
Re: How to Hide the attributes from template BBPSC01?
Re: How to validating total value in shopping cart
Re: Price filed in Shopping cart should be in display mode
BR,
Disha. -
How to separate non metric fields in Fact tables
Hi All,
I am having metric fields along with some non metric fields in fact tables(All the fields has to be present in fact table only). Is it possible to group all non aggregated fields and aggregated fields in the same fact tables. Please advise.
regards,
Gurucheck this
OBIEE, Endeca and ODI: Fact and Dimension from single source Table
Thanks,
Saichand -
How to put non-repeating field in a repeating frame?
I have a formula field that creates the header for a list in a repeating frame. I seem to be in a quandary though-if I include the field inside the repeating frame the header gets repeated. If I put it outside the frame I get an error 'Field references Column at a frequency below its group'. If I move the formula column to the parent query it works except in the case where the child query returns no rows-then I get the header with no data.
So, I either need a way to display the header inside the repeating frame, but only once, or I need a way to suppress the header when the child query returns no rows.So, I either need a way to display the header inside the repeating frame, but only once, or I need a way to suppress the header when the child query returns no rows.You can try one idea. Keep the formula column in detail group and create one more summary column as serial number for the detail records so in repeating frame place that field (formula column) in repeating frame and use the PL/SQL code for that field as below...
IF :serial_no = 1 THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;Then it should display for the first record only.
-Ammad -
Searching non-key fields in table maintainance
Hi..
How to find non-key fields or how can we enble the FIND button in maintaince table ?
Please reply....
Thanks ...Hi,
When you are on the table maintenance screen, you can :
1. Goto menu options. Selection-->By Content
2. Choose the fields you want to search data on and Press enter
3. Enter the operator and the value (you can append or insert a new field here as well )
4. Click on the choose button.
regards,
Advait -
How do I get a value from a portal form for a non database field ? HELP!!
I have a form based off of a table that I added a field to. The form is to allow the user to change abbreviation for a
department field ie. BIO to BIOL. for a biology department. I have a pl/sql procedure for validation using the custom option
on the update button to verify the user and update the data. I have tested to code at the sql prompt and it works.
They only difference between the prompt and the form is the non-database field new_dept_abbr was added to the
form. I don't know how to capture the value of the user input into a variable that can be used in the pl/sql.
Any help would be appreciated.
I have tried this approach
v_new_dept_abbr := p_session.get_value_as_varchar2(
p_block_name => 'default',
p_attribute_name => 'new_dept_abbr'
have tried using p_attribute_name as 'a_new_dept_abbr' but this does work and does not exist in the body of the form.
Have also tried setting the p_block_name to _session - still doesn't work.
Any ideas??
Thanks
Debbie BrennanThanks for the info. I tried that and it still doesn't pull the value. I have opened a TAR via metalink, but I'm not getting any
satisfactory answers. I ran across an note - 137172.1 that has this snippet of information in it.
Unfortunately, at this time (portal 3.0.7.6.2) , a non-table item cannot be
referenced in a plsql event handler, only in client side JavaScript code. This
is a known limitation and will be fixed in a future release.
I don't know how to get the value from the client side JavaScript code to a pl/sql variable. Do you?
I've been trying to get them to tell me if the 'known issue' has been addressed in 3.0.9.
I'll keep at it. Thanks so much for your suggestion I appreciate it.
Deb -
to create apple US account i followed all the steps including none in the payment option. i dont have US address how should i fill the fields.
You need to be in a country to use its store - if you are not in the US with a US billing address then you cannot use the US store.
From the US store's terms of use :
The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance. -
How to display records from a query into non-database field
Hi
I a have a problem:
I have a query with many tables and 6 column(select a,b,c,d,e,f from x,y,z,t,s,g where conditions) and I use 3 parameters.
I create 3 parameters :datai,:dataf and :partener and a button with a trigger when button is pressed.
Then a create a manualy block with six field non-database a1,b1,c1,d1,e1,f1.
Now I want to display all the records from my query into a1,b1,c1,d1,e1,f1 where a1=a,b1=b,etc. and all the records (if I have 20 record, it will display 20 records in non-database field) when I press the button.
How I made:
I create a cursor with query then
begin open cursor
loop
fetch cursor into :a1,:b1,:c1,:d1,:e1,:f1;
end loop;
close cursor;
end;
It display one record in a1,b1,c1 only and it have to display 100 records and are date for all the fields.
Can somebody help me in this problem?
Thanks.
Edited by: 928437 on Oct 1, 2012 2:55 AMCreating a view, and querying that into a database block is an excellent solution.
To use the non-database block:
You're missing the all-important Next_Record; command.
<pre> Begin
Go_block('X'); -- block X is the non-database block
Clear_Block(No_Validate);
open cursor X1;
loop
If :System.Record_status != 'NEW' then
Next_Record;
End if;
fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
Exit when X1%NOTFOUND;
end loop;
close X1;
end;</pre> -
How to Set Position Cursor Option to Non key fields in Table Maintenance .
Hi,
I have created a Ztable and i am using table maintenance for that table. In TMG ,by default we have position cursor option to key fields only . User wants that position cursor option for non key fields also. Please help me out of this issue .
How to provide Position Cursor option to Non key fields.
Thanks & Regards,
Prasad.Hi Nabheet,
I tried using TYPE S DISPLAY LIKE E and am setting vim_abort_saving as X and sy-subrc as 4. However, this is also not enabling the fields. In this case, the first 2 fields - key fields are getting enabled but not the required ones. The above snapshot is for the same.
lv_date1 = table1-date1.
lv_date2 = table1-date2.
lv_diff = lv_date2 - lv_date1.
IF lv_diff LT 0.
CLEAR: lv_err_msg.
lv_err_msg = text-005.
MESSAGE lv_err_msg TYPE 'S' DISPLAY LIKE lc_e.
vim_abort_saving = lc_x.
sy-subrc = 4. -
How do I take two separate non numeric fields in a acrobat form and combine the data to display in a third separate field?
You have to use custom JavScripting to concatenate the first 2 fields. You cannot use the first 2 calculation options because they force the values of the fields to a numeric value or ignore string values.
Possible scripts for the 3rd field are:
event.value = this.getField("Text1").valueAsString + " " + this.getField("Text2").valueAsString;
or
event.value = this.getField("Text1").valueAsString.concat( " ", this.getField("Text2").valueAsString);
If you do not want change the separator or not show the separator when on or the other field is empty, you will need to add more code to adjust for change.
The above scripts will also concatenate number because the field values are read as strings and not numbers.
There is also a generalized user written function to concatenate up to 3 fields with a separator that adjust for missing data. -
How can we protect the ztable non key fields data in sm30 display.
Hi experts,
I have created tablemaintenence generator for one z table, in sm30 user has access to enter the data.
in that maintenence i have to protect the non key field values data like once the user saves his data.than in the edit mode it has to show the nonkey fields data but dont access to edit some nonkey fields... please helpHi
U need to change the screen flow generated by maintenance view generator: here go to Enviroments->Modifications->Screen; doubleclick on your screen and the system take you to screen painter.
Here go to screen flow and in PBO add new module in order to protect the field for the old records: u can use the statament LOOP AT SCREEN./ENDLOOP to do it.
LOOP AT SCREEN.
IF .....
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Max -
Hi,
I am using the following code.
Tables : vbap.
DATA: t_vbap TYPE STANDARD TABLE OF vbap,
x_vbap TYPE vbap.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
SELECT-OPTIONS: s_vbeln FOR vbap-vbeln.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
SELECT * FROM vbap
INTO TABLE t_vbap
WHERE vbeln IN s_vbeln.
LOOP AT t_vbap INTO x_vbap.
at new vbeln.
write:'new vbeln'.
ENDAT.
ENDLOOP.
In debugging mode, the non-numeric fields on x_vbap becomes ****
I want to know whether this can be done using oops.. any methods available for at new
Moderator message: please search for available information/documentation before asking (as you can tell from some of the replies so far)
locked by: Thomas Zloch on Oct 1, 2010 3:25 PMsee documentation:
"If the INTO addition is used in the LOOP statement to assign the content of the current line to a work area wa, its content is changed upon entry into the AT-ENDAT control structure as follows:
The components of the current control key remain unchanged.
All components with a character-type, flat data type to the right of the current control key are set to character "*" in every position.
All the other components to the right of the current control key are set to their initial value.
When the AT-ENDAT control structure is exited, the content of the current table line is assigned to the entire work area wa. " -
How can we hide the non key field values in the sm30 display
hello experts,
I have to protect the non key field values in the sm30 display , can u help me out wat changes i have to do in the layout.Hello Gopal,
What do you mean by 'protecting' your non-key field value?
1) You want to display it, but make it non-changeable
A - Make the field as output-only in screen, as already answered by a preivous collegue
2) You do not want to display this field at all
A - Goto the DDIC definition of the view (not possible for a table directly), and maintain the required field as a Hidden. After activating, remember to re-generate the maintenance dialogue. Also, please maintain Event 21, in case you want to access/change the value of this field in background.
3) You want to maintain special validations/checks for the field
This can be easily done by introducing your modules within the CHAIN-FIELD commands in the PAI of the generated screens.
Best Regards,
Rekha -
Free Good Qty as non modifiable field in the Sales Order Level
Dear Friends,
I have successfully done the config change for the Free Goods, But now i want make the free good line item qty as a non modifiable field in the Sales Order Level.
How can i do this.. Please advice.
Thank U,
UwanthiHi
This is a standard behaviour in the system
kindly use the below program and user exitexit
MV45AFZZ and use "Userexit_filed_modification"
Regfards
Damu
Maybe you are looking for
-
No sound through tv when hooked hdmi hpdv7 4069 sound only shows idt high def codec
win 7 64 HPdv7 4069wm notebook not reconizing hdmi device manager sound, video only show idt high def codec display adapter shows amd m880G with ati mobility radeon HD4250 & ati mobility radeon
-
How to identify listeners types for forms, items and events in addon wizard
Dear users, I have developed a sample addon through B1DE wizards and successfully installed and connected the addon and can view menu and form of my addon. Since i am new to this, i didn't add any listeners to my form, items and events because i don'
-
Ever since updating to Mavericks, every time I turn on or restart my laptop, I am prompted to enter my iCloud password. This is annoying enough, but to make matters worse, it keeps telling me I am entering the wrong password. I AM NOT! Help?
-
USB Cable almost impossible to disconnect from 5th Gen iPod
My 80 Gig iPod arrived today. It is my first MP3 player and I am impressed by it. Operation seems to be quite easy. I , however have a problem. When I have completed charging/synching the iPod and have "ejected" it from iTunes, I have found it almost
-
I am embarking on a new project to create a joomla template. I need your ideas on how to use Dreamweaver to create the template. TQ