Is it possible to create a common data entity to insert data in multi tbls

Hi,
I am using JDev - ADF 11g.
I have a scenario where few of the columns like "Created By", "Created On", "Updated By", "Updated On" kind of columns are repeated in various database tables.
When I create entity objects of these tables I find that I am repeating these variables at many places. Ofcourse they are mapped to exactly a column of a table, but since we are using java as one more layer, I was thinking if there is a way to create a common entity with these variables. This will help me to include it in various other entities and do the required insert/update in a specific table.
Kindly help to know if this thought itself is correct for ADF. If yes then how can it be achieved?
thanks in advance

Hi,
You'll probably want to look into "Using Inheritance in Your Business Domain Layer"
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadveo.htm#sm0327

Similar Messages

  • Is it possible to create group above report between to different data model

    Hi,
    I am having one problem.. I am working on Bi publisher 10...
    I have to create 2 different data models.. which i have done successfully.... its showing xml data perfectly.. but my problem is i want my 2nd data model to be dependent of 1st model...
    when i am designing my template ... i am not able to create a group by report..
    i want my report like this ...
    ------------------------------------------------------------ (fetching data from first data model)
    abc xyz pqrs
    --------------------------------now their it must show the data from second data model... dependent on first model...
    simply i want to know is it possible to create group above report between to different data models..

    Thanks for your response..
    I already tried this.. But its not working ..
    i want parent information from data model 1
    then all detail information related to parent template ...from data model 2..
    but its not working.. its giving me all parent informations first then all details informations..

  • Is it possible to create a virtual TCP port and send data to it?

    Is it possible to create a virtual TCP port and send data to it?
    My application is this:   I am reading a constant stream of waveform data from a device via a LabVIEW VI set and I need to get that streaming data to a .NET application.  I can poll a TCP port in .NET easily so is there a way I can create a virtual TCP port in LabVIEW and send the data there?

    Have a look at the example called simple data server and simple data client and see what you can get from that. I'm not really familiar with TCP myself.
    Joe.
    "NOTHING IS EVER EASY"

  • Why should we create index on  the table after inserting data ?

    Please tell me the Reason, why should we create index on the table after inserting data .
    while we can also create index on the table before insertion of the data.

    The choice depends on a number of factors, the main being how many rows are going to be inserted in the table as a percentage of the existing rows, or the percentage growth.
    Creating index after a table has been populated works better when the tables are large or the inserts are large for the following reasons
    1. The sort and creation of index is more efficient when done in batch and written in bulk. So works faster.
    2. When the index is being written blocks get acquired as more data gets written. So, when a large number of rows get inserted in a table that already has an index , the index data blocks start splitting / chaining. This increases the "depth" of the inverted b-tree makes and that makes the index less efficient on I/O. Creating index after data has been inserted allows Orale to create optical block distribution/ reduce splitting / chaining
    3. If an index exists then it too is routed through the undo / redo processes. Thats an overhead which is avoided when you create index after populating the table.
    Regards

  • Is it possible to create a physical DS from an insert SQL statement?

    Hi,
    From the ALDSP docs I came to know we can create a physical data service from a select SQL statement. Can we use an insert statement to create a physical data service? we dont want to use stored procedure for this.
    Please help.
    Thanks,
    Leela

    When you create a physical data service from a database table, the data service will contain a create<tableName> procedure. That procedure will execute an insert statement for the table.

  • Is it possible to create a custom control class and insert its instance in a form?

    I have several controls that will work togheter and in a similar way in several forms.
    For example, a GroupOption with two ButtonOptions. Clicking on one button option the frame willl  became higher and a TextBox will appear; clicking on the other the TextBox will disappear and the frame will shrink again.
    I need them in different size or few other propieties but the basic funcionality are the same.
    I was thinking to create a Class with all the built in Controls and the relevant methods and propieties to keep my code clearer, simpler and reusable.
    But I don't know if my idea viable.
    After creating a simpler version of the class; I was trying to put it at work in a test form but I could not find the way to insert it.
    I've only find a Application.CreateControl with a required parameter
    ControlType which ranges only over built in controls not custom one.
    I'm working in VBA with Access 2007 and later.
    Thanks for your advice.

    That is not really practical with Access. For example CreateControl does not work with compiled applications, which is how you should deploy them. Also the level of modularization you desire just is not available. Maybe a subform would come close to this,
    but I would HATE to work on one of your apps if you build each form with a collection of subforms.
    While you can and should re-use code using modules or class modules, not so much for UI elements. More advanced development environments like WPF can do this.
    -Tom. Microsoft Access MVP

  • Inserting data into relational views of object tables

    I hope someone could help me to solve the following problem:
    I would like to design an object-relational database in O8i. Unfortunatly the client-software (GIS) can only understand relational data (except the object type 'geometry'). So I created relational views on my object tables. But now it is not possible to insert data in those views. Do I have to create triggers on those views for inserting data ???
    Nevertheless: Updating data in views makes no problems.
    Thank you for reading this and I look foreward to hearing from you soon.
    Christian Heil

    Hi Mohammed,
    I guess following is your requirement
    List1 tile is attached to "BOList1". On button press you wanted the data to be persisted to Business object "BOList1History"
    I assume that you have created "BOLIst1History" properly by associating a write Bdoc etc etc.
    Write a method in Business object "BOList" called ZUpdateHistory. This new method should contain code for creating an instance of "BOLIST1History" and fill the property values as per your requirement. Call this method from the Button press event as follows
    anchor.bo.ZUpdateHistory
    Hope this helps
    Regards
    Ganesh Datta

  • Need to insert data in 2 tables thro stored procedure

    I need to create a stored procedure which will insert data in two tables. The procedure will get
    its inputs from an Oracle Developer Form which will be inserted into the tables.
    The 2 tables structure:
    1.FEES_MASTER
    Name Null? Type
    FEES_ID NOT NULL NUMBER(8) -- Primary Key
    CS_ID NOT NULL NUMBER(8) -- Class Student ID; An enrolled student
    REC_DATE NOT NULL DATE -- Fees receipt date
    REC_AMOUNT NOT NULL NUMBER(6) -- Fees receipt amount
    2.FEES_DETAIL
    Name Null? Type
    FEES_ID NOT NULL NUMBER(8) -- Foreign Key
    MONTH NOT NULL DATE -- First of each month to identify fee month
    Scenario:
    A student submits fees for 3 months through Master/Detail related blocks in a Developer Form as
    Under:
    Fees Master
    Fees ID : 11002
    Class Student ID : 356
    Receipt Date : 06-JAN-2001
    Receipt Amount : 1500
    Fees Detail
    Fees ID Fees Month
    11002 01-JAN-2001
    11002 01-FEB-2001
    11002 01-MAR-2001
    I need to check each fees detail record for fees month duplication as well before inserting new records.
    How can this be achieved?
    Thanks in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Fan Liu ([email protected]):
    create primary key in the detail table. i think it's FEES_ID + MONTH. then mark the columns in Forms as primary key property true, then call check_record_uniqueness built-in in on-check-unique trigger.<HR></BLOCKQUOTE>
    Thanks very much. But what I need is to ensure transaction integrity thro stored procedure. The system allows a certain CS_ID (i.e. Class Student ID, which is assigned a new one to every student annually) to submit fees for 12 months only, because a student stays in a class for a year. The 2 columns in the FEES_DETAIL table are composite primary key which only ensures that a certain FEES_ID will not be repeated for the same month. But suppose:
    1)this data already exist in the tables:
    Fees Master
    Fees ID : 11002
    Class Student ID : 356
    Receipt Date : 06-JAN-2001
    Receipt Amount : 1500
    Fees Detail
    Fees ID Fees Month
    11002 01-JAN-2001
    11002 01-FEB-2001
    11002 01-MAR-2001
    2)And this data is currently being inserted:
    Fees Master
    Fees ID : 11300
    Class Student ID : 356
    Receipt Date : 04-FEB-2001
    Receipt Amount : 1500
    Fees Detail
    Fees ID Fees Month
    11300 01-JAN-2001
    11300 01-FEB-2001
    11300 01-MAR-2001
    The data in the 2nd condition is perfectly valid but the application can't allow a student to submit fees for a month which he has already submitted. Now only a stored procedure can make sure after checking that the same student doesn't pay fees for duplicate months. Another reason for my emphasis on stored procedure is that what if a user tries to insert data thro an SQL* Plus session instead of the Form.
    PROBLEM: Now the problem I am having is I don't know how the procedure will take input for multiple records from the FEES_DETAIL block in the Form.
    Please assist in this regard. Thanks.

  • Insert Data Into Infotypes

    Hello!
    I am developing an inbound IDoc, during which i am suppose to insert respective segment structure into infotypes PA0000, PA0001, PA0002, PA0006 & PA0008 through Function Module RH_INSERT_INFTY, its throwing error sy-subrc 1, i can give sample code of it
    CALL FUNCTION 'RH_INSERT_INFTY'
    EXPORTING
    fcode = 'INSE'
    vtask = 'S'
    order_flg = 'X'
    commit_flg = 'X'
    repid = sy-repid
    TABLES
    innnn = innnn
    EXCEPTIONS
    no_authorization = 1
    error_during_insert = 2
    repid_form_initial = 3
    corr_exit = 4
    begda_greater_endda = 5
    OTHERS = 6.
    The internal table innnn has record of type as follows
    710 12080033 12/31/2006 12/27/2005 000 01/02/2006
    When Idoc is posted through We19 through 'RH_INSERT_INFTY', it throws Sy-Subrc 1.
    When the same record is input manually through SE37 into function Module 'RH_INSERT_INFTY', it throws error_during_insert,
    Can any guys suggest me to come out of this problem, if possible suggest any other standard Fuction Module to insert data into Infotypes,
    Thank You
    Regards
    Rajesh

    Hi Rajesh,
    The function module 'RH_INSERT_INFTY lets you insert multiple infotype records for OM objects into the Personnel Planning databases (HRPnnnn). ie the PD infotypes. For updating PA infotypes pl use 'HR_INFOTYPE_OPERATION' as suggested by others earlier.
    Regards,
    Suresh Datti

  • Could not insert Data in to the table

    hello friends
    I have some pbm in inserting values in to sqlserver database table.I could not insert values to the
    table having varchar datatype fields.partyType is a field name of varchar type.when i try to insert
    "LCL" for that field it throws following exception.
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]The name 'LCL'
    is not permitted in this context. Only constants, expressions, or variables allowed here. Column
    names are not permitted.
    sometime it throws
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not
    implemented
    If i give only numeric values to those fields it accepts.ie table accepts only integer values for all the fields.I use prepared statement for inserting data.I am inserting data to 4 tables at a time.I use ODBC driver.can u tell me where would be the problem??</p>
    with regards
    devi

    Hmmmm...
    ssniazi does nothing but ask for contact information or recommend Oracle products.
    Based on this I consider it likely that this person is some sort of sales representative either directly or indirectly associated with Oracle.
    I personally wouldn't provide any contact information to this person. Nor would I accept any advice until this person starts to actually provide some solutions or at least correctly reveals any financial interests that they might have.
    In addition I believe ssniazi is in violation of the conduct code of this website because ssniazi is requesting information which will be used by a business entity without telling the users that it will be used in that way. And I expect that Oracle itself would frown on such activities.
    2.3 You agree that You will not use the Website to:...(g) collect or store personal data about other users unless specifically authorized by such users.

  • System.Data.Entity.DbSet entity doesn't get updated with sequence nextval

    I am using EF6 with oracle 12c client. I need dynamic entity object to be added in System.Data.Entity.DbSet
    System.Data.Entity.DbSet entity = Request.Context.Set(obj.GetType());
    Object Updated = entity.Add(obj);
    Result_SaveChanges = Request.Context.SaveChanges();
    int sequence = Request.Context.Database.SqlQuery<int>("SELECT " + SeqName + ".currval FROM DUAL").FirstOrDefault();
    Save Changes doesn't update the object's key but fetching the sequence give me the updated value. I need System.Data.Entity.DbSet entity to be properly updated so that i can insert child entities too through their navigation properties.

    Hello Sidra,
    Since you are working with EF based on Oracle database provider, for this, i suggest that you could post it to the Oracle related forum:
    https://community.oracle.com/welcome
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to create a shortcut for current time / date with iPhone native apps?

    is it possible to create a shortcut to insert the current time / date in a text such as a Note with iPhone (IOS 6) native apps (not a 3rd. party app)?
    By "shortcut" I mean a combination of characters, the same as under settings/general/keyboards/shortcuts.
    thanks.

    Code that does it is here:
    http://forum.java.sun.com/thread.jsp?forum=48&thread=453846&tstart=0&trange=15
    MOD

  • Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format

    Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format. Siebel wants to send the data as xml to BI but not sure of the BI capabilities on giving WSDL embedded with XSD (input is a hierarchical)

    Hi All,
    I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
    Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
    Please let me know if there is any oracle functionality to do this.
    If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
    For eg, /$APPL_TOP/ar/1.0/sql or something.
    Regards,
    Swapnil K.

  • Can it be possible to create invoice without billing plan date?

    Hi Gurus,
    I have made settings for billing plan in contracts. But, client wants billing plan at contract level only for the sake of reporting. Client doesnt want invoice to be created according to these billing plan.
    Now, consider this scenario,
    I have created contract A with billing plan values in it.
    I have created sales order B with reference to contract A. There are no billing plan values in sales order B.
    There is no delivery and PGI.
    Now, when I try to create invoice with reference to sales order B, system doesnt allow me to save the same and says "No billing plan date found".
    Will it be possible to create invoice irrespective of the billing plan in contract?
    Please guide.

    Hi,
    Then in that case i would advise not to use billing plan for your contract document type.
    If you intend to create a sales order in reference to your contract document which has billing plan type attached, then in that case you need to maintain billing plan for your sales order document too.
    Reward if helpful.
    Regards
    Ravi

  • Is it possible to create 2 Date objects with different hashcode.

    Hi,
    I want to create 2 java.util.Date objects with different hashcodes. Is it possible??
    Regards,
    Farooq

    import java.util.Date;
    import java.util.Calendar;
    public class TwoDates {
        public static void main(String[] args) {
            Calendar oneCal = Calendar.getInstance();
            oneCal.set(Calendar.YEAR, 1903);
            Calendar anotherCal = Calendar.getInstance();
            Date oneDate = oneCal.getTime();
            Date anotherDate = anotherCal.getTime();
            System.out.println(oneDate.hashCode() + " " +
                               anotherDate.hashCode());
    -14330615 -825112150

Maybe you are looking for