How to handle audit columns using EJB and JPA.
Hi,
I am using JDev10.1.3.3 with Swing and EJB + JPA + TopLink.
Every entity (POJO) has the same audit columns:
@Column(name="CREATE_DATE", nullable = false)
private Timestamp createDate;
@Column(name="CREATE_USER_ID", nullable = false, length = 30 )
private String createUserId;
@Column(name="MODIFY_DATE", nullable = false)
private Timestamp modifyDate;
@Column(name="MODIFY_USER_ID", nullable = false, length = 30 )
private String modifyUserId;
Does JPA has a default feature/component that will auto populate this fields. (Similar to Business Components)?
Thanks,
Jim
Hi,
I am not aware of this being part of EJB/JPA. However, you may want to check here. Its the TopLink forum, but these guys are involved in the JPA standardization
TopLink/JPA
Frank
Similar Messages
-
How to retrieve multiple columns using "returning" in the Insert query.
hi,
wanted to know how to retrieve multiple columns using "returning" in the Insert Query.
For retrieving one column we write the query as follows:
Insert into TABLE values(1,2,3,4) returning COLUMN1 into PARAMETER
But can we retrive multiple columns in the same query?
am using oracle 10g and coding in .NETHi,
You can definetely get multiple values from a single query using the 'returning' clause.
Eg : insert into emp (empno, ename, job, deptno) values (7324,'ADAM','MARKETING',30) returning ename, deptno into var1, var2; PN : var1 & var2 to be declared as varchar2 & number respectively.
More insight into the 'RETURNING' clause in this link.
http://www.samoratech.com/PLSQL/swArtPLSQLReturn.htm
Regards,
Bhanu. -
How to get last column used in report sorting?
hi,
how to get last column used in report sorting?
simonHow to identifiy which column was sorted having different reports on page?
just use:
'YOUR_STATIC_REGION_NAME' instead of p_static_id,
:APP_ID for p_app_id,
:APP_PAGE_ID for p_page_id
:APP_USER_ID for p_app_user.
and dont forget to grant SELECT on #OWNER# to APEX_030200.WWV_FLOW_PREFERENCES$
good luck and thank you Juergen.Schuster
Simon -
How to connect one page using button and by link in BSP
how to connect one page using button and by link in BSP
hi,
use on 'onclick' functionality.
1. In layout, onclick = 'NEXT_PAGE' of the button
2. Capture the event in onInputprocessing,
DATA: event_id TYPE REF TO cl_htmlb_event.
case event_id.
when 'NEXT_PAGE'.
navigation->goto_page( 'URPAGE URL' ). -
How to set unequal columns using master pages in InDesign CS3?
How to set unequal columns using master pages in InDesign CS3?
I don't have CS3 anymore but I don't think this has substantially changed in the last few versions of InDesign.
Choose View > Grids & Guides > uncheck Lock Column Guides. Then drag the column guides to the position you want. -
Explain How delivery date is calculated using backward and forward schedul
How can anyone please explain how delivery date is calculated using forward and backward scheduling
I want to have it broken down into the following steps
for eg for delivery date calculation following dates are used
Material Availabilty Date
Material Staging Date
Pick/pack time
Transportation PLanning date
Loading date
Goods issue date
Transit Date
Delivery Date
Can some one please give me an example and explain wht these dates are
for eg customer needs delivery date on 11/20/2008
how would the system cacluate whether it can meet the delivery date using backward scheduling
and if it doesnt meet how does the system do the forward scheduling
also i am not clear with the following dates
material avaialibilty date
material staging date
transportation date
can some one please explain me all this in detail
ThanksHi,
Basically this is the CRSD(Customer requested ship date logic)logic in which system calculates the ship date depends upon the material availability. If material is available system calculates ship date on the basis of master data maintained in customisation.Master data is maintained in the following link.
If material is not available then system takes into consideration vendor delivery date & then calculate customer ship date.
Please go through the link in SPRO
LE-Shipping -Basic shipping functions-Scheduling -Delivery scheduling & Transportation scheduling-Maintain duration.
In customisation following data is maintained
Material Availabilty Date
Material Staging Date
Pick/pack time
Transportation PLanning date
Loading date
Goods issue date
Transit Date
Delivery Date
Hope you got the idea of CRSD calculation
Regards,
Prashant. -
hello,
how to refresh table display using slis and 'reuse_alv_grid_display method'.
when i'm refreshing table display it performs once again reuse_alv_grid_display.and when i back the previous value appear.how to solve it?
neonare you chaning any value in the gird if so use this..
Pass the user_command form name to the Import parameter
I_CALL_BACK_USERCOMMAND .
and have the Dynamic form implementation..
FORM user_command USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
"The below is important for Editable Grid.
DATA: gd_repid LIKE sy-repid, "Exists
ref_grid TYPE REF TO cl_gui_alv_grid.
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data .
ENDIF.
CASE ucomm.
WHEN 'REFRSH'.
ENDCASE.
selfield-refresh = 'X'.
ENDFORM. "user_command -
How to handle Asynchronous calls using OSB?
Hi There,
How to handle Asynchronous calls using OSB?
Please help me out??
-VenkatHello friend, here is what you need.
Oracle Service Bus, invoke asynchronous webservices | Oracle .. Java .. OpenSource .. SOA -
How to handle more column in a report?
<p>Hai,</p><p> How do I handle to create a design which is have more than 10 column in a reports? Currently what I do is I used landscape and page size A3..but its still not enough space (column) that allows the reports to generate the data needs. Any advise? <br /></p><p> </p>
<p>hai..thanks for the response.</p><p>I've chanes my reports using 11 X 17. Unfortunately,it seem different from the current reports. The page ruler at the top only display 17..which is mine is 25. (I used A3, landscape). Is it possible to get the page width something like 30 / 35. Does I need to select a printer type to meet the requirement or something else? Kindly advise. </p>
-
How to print all columns using af:showPrintablePageBehaviour component ?
Hi,
JDev ver : 11.1.1.2.0
I have 25 columns in my table and table is surrounded by panel collection.
In panel collection toolbar facet I have added one command button and inside command button I have added af:showPrintablePageBehaviour compoent.
I can able to see only 15 columns which are fits to entire browser window.
How can I print all 21 columns using this in new browser window or any other way ?
regards,
devangHi,
showPrintable behavior only removes action components and beside of this renders the screen as you have it. If the screen you have doesn't show all of the columns then show printable behavior doesn't do either and you may need to look for alternative printing/reporting solutions
Frank -
How to handle error while using dbms_sql.execute
Hi,
I am inserting some records by using the following piece of code.
stmt := 'insert into SSI_KPI_GOAL_VALUE_H (KPI_VAL_KPI_ID, KPI_VAL_RM_CDE,'|| v_day_value ||',KPI_VAL_ACT_DLY,'||v_month_val||',KPI_VAL_BIZ_UNIT_CDE) values (:kpi_array,:rm_array,:day1_array,:day1_array,:day1_array,:busnunit_array)';
l := dbms_sql.open_cursor;
dbms_sql.parse(l, stmt, dbms_sql.native);
dbms_sql.bind_array(l, ':kpi_array', col1_ins,1,ins_cnt-1);
dbms_sql.bind_array(l, ':rm_array', col2_ins,1,ins_cnt-1);
dbms_sql.bind_array(l, ':day1_array', col3_ins,1,ins_cnt-1);
dbms_sql.bind_array(l, ':busnunit_array', col4_ins,1,ins_cnt-1);
dummy := dbms_sql.execute(l);
dbms_sql.close_cursor(l);
I am getting an error since any one of the row contains value larger than the column.
How to handle exception handling for those rows which is having errors. I would like insert the records which is having
no errors. Like SAVE EXCEPTIONS for 'forall' is there any option is available to handle exceptional records.
Please help.
Thanks & Regards,
Hari.Hari,
What's oracle version? Are you looking for something similar to this? see following example
DECLARE
TYPE array
IS
TABLE OF my_objects%ROWTYPE
INDEX BY BINARY_INTEGER;
data array;
errors NUMBER;
dml_errors exception;
error_count NUMBER := 0;
PRAGMA EXCEPTION_INIT (dml_errors, -24381);
CURSOR mycur
IS
SELECT *
FROM t;
BEGIN
OPEN mycur;
LOOP
FETCH mycur BULK COLLECT INTO data LIMIT 100;
BEGIN
FORALL i IN 1 .. data.COUNT
SAVE EXCEPTIONS
INSERT INTO my_new_objects
VALUES data (i);
EXCEPTION
WHEN dml_errors
THEN
errors := sql%BULK_EXCEPTIONS.COUNT;
error_count := error_count + errors;
FOR i IN 1 .. errors
LOOP
DBMS_OUTPUT.put_line( 'Error occurred during iteration '
|| sql%BULK_EXCEPTIONS(i).ERROR_INDEX
|| ' Oracle error is '
|| sql%BULK_EXCEPTIONS(i).ERROR_CODE);
END LOOP;
END;
EXIT WHEN c%NOTFOUND;
END LOOP;
CLOSE mycur;
DBMS_OUTPUT.put_line (error_count || ' total errors');
END;Regards
OrionNet -
How to Display Sub-Columns using ALV Grid
Hi ,
Could someone tell me how to display sub-columns under a parent column using ALV Grid. Do we have any standard Program which has this scenario. Please let me know.
Thanks,
Abaper.
Message was edited by:
ABAP'eryou can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
check below
BCALV_DND_01 Drag ALV Row to Tree Folder
BCALV_DND_02 Drag Icons from Tree to Rows of the Grid
BCALV_GRID_DND_TREE ALV Grid: Drag and Drop with ALV Tree
BCALV_GRID_DND_TREE_SIMPLE ALV GRID: Drag and drop with ALV tree (simple)
BCALV_TEST_COLUMN_TREE Program BCALV_TEST_COLUMN_TREE
Rewards if useful............
Minal -
How to handle the errors using RSRV tcode
Hi all,
Could any one give tell me how to handle the errors,(if possible give me some example errors)and correct the errors using RSRV tcode.
Thanks & Regards,
Aswini.Hello Aswini,
For further details on RSRV go through the link:
http://help.sap.com/saphelp_nw04/helpdata/en/92/1d733b73a8f706e10000000a11402f/frameset.htm
Hope it helps
Cheers
SRS -
I need to know , how to handle partner profile using BDC.
hi all ,
i need to know how to handle the Partner Profile using BDC, i need the basics behind if any one address regarding this it ill be very helpfull for me. i need a detail description for the above.
Thanks a Lot in Advance........
Thanks
senmaar.I need the basic behind , need to know how its works..... And i need to know could you give me a simple scenario so that i can easily understand.
Could anyone Describe the Basics about that.......
Thanks in Advance
Regards ,
Senthil Kumar -
How to create store procedure using cursor, and looping condition with exce
Hi,
I am new in pl/sql development , please help me for follwoing
1. I have select query by joining few tables which returns lets say 100 records.
2. I want to insert records into another table(lets say table name is tbl_sale).
3. If first record is inserted into tbl_sale,and for next record if value is same as first then update into tbl_sale else
insert new row
4. I want to achieve this using store procedure.
Please help me how to do looping,how to use cursor and all other necessary thing to achieve this.DECLARE
b NUMBER;
BEGIN
UPDATE tbl_sale
SET a = b
WHERE a = 1;
IF SQL%ROWCOUNT = 0
THEN
INSERT INTO tbl_sale
(a
VALUES (b
END IF;
END;note : handle exceptions where ever needed
Regards,
friend
Edited by: most wanted!!!! on Mar 18, 2013 12:06 AM
Maybe you are looking for
-
RoboHelp X5, WebHelp I have four hyperlinks (let's say, A, B, C, D) within my project to access external Excel spreadhsheets. A copy of the files is located in the project folder(the one on my desktop). When the project is published to the server, o
-
Adobe form is not displayed via function module
Hi to all, I have written a function module. Import parameter: ADOBEFORM_NAME type FPNAME. DATA: fm_name TYPE rs38l_fnam, fp_docparams TYPE sfpdocparams, fp_outputparams TYPE sfpoutputparams. CALL FUNCTION 'FP_JOB
-
Every time I send a file to the TRASH, finder ask me to type my system password to complete the removal and wasn't like this before. How do I make to work like it was before? Thanks.
-
Sometimes when I close Firefox I get error and nothing happens. I dont know why this happens, and everything except this. [http://i33.tinypic.com/2mxe7ur.pngm image]
-
hi, I have two tables table1 and table2. But i need all fields from table1 and i should use where condition between these two table. Please give a query for this.. Thanks, Chells