How to Change Annotion values dynamically

Hi,
I need to know how we can change the values of annotation dynamically. For example, my application uses DB2 database for which table name and schema name are reqired for Entities as follows.
*@Entity*
*@Table (name*="EMPLOYEE", schema="SC235")
public class Employee {
I would like to change the Schema name at run time.ie, the same application may be run with different DB2 data base which conatins same table structures and names but with different Schema names. Is there any way we could change the Schema name at runtime. Atleast if any body suggest how to configure Schema name through persistence.xml or any other property files wold be great.
Note: When I tried to assign a value from resource bundle, it is throwing the error "the value for annotaion attribute *Table.schema* must be a constant expression" during compilation itself.
Please help.

sk_java wrote:
Hi,
I need to know how we can change the values of annotation dynamically.Annotations in source code must be compile-time constants. The annotation objects returned by the runtime are immutable.
That said, there are a few ways to get the effect of changing annotation values. First, you can use the redefine classes API and then getting a new annotation object will have the updated values. Also, an annotation type is just a specialized kind of interface and that interface can be implemented by your own classes too.

Similar Messages

  • How to change varient values dynamically in APD

    Hi Friends,
    I have created an APD ,to this APD i am feeding 4 query out puts.For this 4 querys i am using the varients, i wante to change the varient values i.e date field/date ranges fields dynamically.pl.let me know if any b'dy worked such scnarios.
    Thanks in advance.
    Sirisha.

    sk_java wrote:
    Hi,
    I need to know how we can change the values of annotation dynamically.Annotations in source code must be compile-time constants. The annotation objects returned by the runtime are immutable.
    That said, there are a few ways to get the effect of changing annotation values. First, you can use the redefine classes API and then getting a new annotation object will have the updated values. Also, an annotation type is just a specialized kind of interface and that interface can be implemented by your own classes too.

  • How to change variable values dynamicly  in broadcasting

    Dear Friends i am scheduling workbooks using broadcasting feature.
    i want to know how can i change the variable values of report in broadcasting dynamically.
    becuase i dont want to schedule report again and again after changing the variable values.
    Regards
    Malik

    i did the same but its not working.
    i create one variant for the query ABC  using RSRT now if i look into table RSRVARIANT we can see that variant
    entry in this table. Now i create variant by bex on this query with the same name.
    now i schedule it using broadcasting but its not takeing the values of RSRVARIANT table.
    Its taking the value of variant which i save in bex.
    By default variant which is save in bex not appear in RSRVARIANT table.
    But i f you make a variant in RSRT you can see those entries in Table RSRVARIANT.
    But RSRT variant is not showing in Broadcast scheduling. Only Bex variant are showing.
    Where should create the variant in Workbook, in Bex web analyzer, or in RSRT.
    Regards
    Malik
    Edited by: Malik Naeem on Jun 9, 2010 2:05 PM

  • How to change default value in a table using ALTER TABLE

    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

  • How to change the images dynamically in a table.

    Hai,
                     How to change the images dynamically in a table based on the condition in webdynpro abap.
    Edited by: Ravi.Seela on Oct 13, 2011 2:17 PM

    This has been much discussed earlier. Do search posts.
    For your scenario i would do the following.
    inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
    create a  supply function for the node image .
    Supply method now has a Element (Parent element ) and node.
    Based on your record in element, set the right image source to path attribute and bind the node.
    This will make sure that the framework calls the image supply function for every row in a table.

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • How to change characterics values in a ready input query ?

    How to change characterics values in a ready input query  base on a real time infocube?
    when  I use  IP to planning I want to change  characterices values that have exit in query?

    Hi,
    On the properties tab of the characteristics (within input query) you can decide what values need to be populated when the query opens.
    Is your exit written on char relationship?
    regards,
    Lokesh Nandula

  • How to change margin value in mode booklet printing Adobe Reader X ?

    How to change margin value in mode booklet printing Adobe Reader X ?

    Is this a form you created in Acrobat or is it a form that you're using with Reader? If the latter, there's nothing you can do if the field has been set up to format the field with a £ for the currency symbol.

  • How to change parameters values

    dear gurus,
    can someone guide how to change below values and apply and what steps should taken and changes do in files
    *     Shared_pool_size = 450M
    *     Db_cache_size = 750M
    *     Pga_aggregate_target = 125M
    *     Sort_area_size = 1M
    *     Open_cursors = 4000
    *     Processes = 300
    regards

    Hi If you have set SGA_TARGET and PGA_TARGET , then you dont have to wory for the individual components.Oracle internally handle it .
    You can get the information for each components using below sql
    sql> select * from V$SGA_DYNAMIC_COMPONENTS;
    If you want to find the optimize size of few of above components , take AWR report(by running script @?/rdbms/admin/awrrpt.sql). At below of report you will see SGA Memory Summary,Shared Pool Advisory,SGA Target Advisory,Java Pool Advisory,PGA Memory Advisory . So accordingly you can reset above mention parameters. This will put lower limit for these parameters
    Edited by: amitbansode on Sep 9, 2009 5:07 AM
    Edited by: amitbansode on Sep 9, 2009 5:08 AM

  • How to change variable values ?

    Dear friends,
    How to change variable values when we are broadcasting the Queires ?
    Do we need to change them everytime ?
    Thanks,
    N

    Hi,
    Please go through it.
    /people/ramkumar.ghattamaneni/blog/2008/02/25/using-variables-while-broadcasting-queries-to-the-portal-in-bi-7
    Regards,
    Ramkumar.

  • How to change VO's dynamically for a item for each row in advanced table?

    Hi All,
    We had a requirement to filter the employees based on the search criteria table. I am using advanced table for developing search criteria.
    In that table I am having three columns. Operator (messagechoice), Criteria Type (messagechoice), and Criteria value (messageLovInput). Also 'Add Another Row' functionality is available.
    My requirement is:
    First Row:(Initial Row)
    When the user selects a value in Criteria Type, only the values that are relevant to that type should be displayed in the Criteria Value.
    Second Row: (when the user selects Add Another Row button)
    When the user selects a value in Criteria Type, only the values that are relevant to that type should be displayed in the Criteria Value.
    The problem I am facing here is, the Criteria Value column is pointing to only one VO at design time. But wee need to change that VO dynamically without disturbing other rows depending on the Criteria Type value.
    Is it possible to do so?
    Note: User can add n number of conditions as he want.
    Can anyone help how to acheive this.
    Regards,
    Sundeep.

    Check Dynamic Poplist section under Standard Web Widgets in Chapter 4 of OA Framework Developers guide.

  • How to change VO query dynamically

    Hi,
    Iam trying to change the VO query dynamically. My req. is I have 6 columns in a header page 3 columns(default single column) for sorting purpose and another 3 columns(default single column) for data querying purpose.
    al these are in one view so I have created one VO.
    Sorting Searching
    A A
    B B
    C C
    When I give any values in Sorting and hit submit button VO query should change dynamically.
    I have searched older post regarding this.
    My query is some thing like this
    SELECT * from cust_table where a = NVL(:1 ,a)
    UNION
    SELECT * from cust_table where a<> NVL(:1 ,a)
    order by a
    Iam trying to pas the below part dynamicaly in my AM method
    vo.setWherecaluse("where a = NVL(:1 ,a)
    UNION
    SELECT * from cust_table where a<> NVL(:1 ,a)
    order by a ")
    and trying to pass the params to that query. But it is not working.Giving error "Bind variable could not find"
    Can any one suggest how to solve the issue.
    Thanks,
    Mahesh

    Hello Ajay,
    THanks for your response.
    My vo query is select col1,col2,col3,col4,col5,col6 from cust_table;
    and and changing vo.setwhereclause dynamically based on different scenerios.
    in one scenerio i need my query to be some thing like
    SELECT col1,col2,col3,col4,col5,col6 from cust_table where a = NVL(:1 ,a)
    UNION
    SELECT col1,col2,col3,col4,col5,col6 from cust_table where a <> NVL(:1 ,a)
    order by a
    so can i concatenate my vo.setwhereclause like *"where a = NVL(:1 ,a) UNION SELECT col1,col2,col3,col4,col5,col6 from cust_table where a NVL(:2 ,a) order by a"*
    in the setwhereclause iam setting bind variables is this method correct? Hope it is clear pleaselet me know if it is not clear I will explain in detail.
    Thanks,

  • How to change the value of Label in runtime

    Hi All,
    I want to change the value of the Label in runtime. Is it possible to change? If so then can you please let me know how to do it?
    Regards,
    Raghu

    Hi Ram,
    Check the below thread
    Dialog program - label problem
    The above thread has been updated just couple of hours ago only
    if it is Standard Screen then try using SHD0 Tcode , but this donot dynamically change the Field labels
    for more info go through Transaction Variants might be helpful,
    This demands Field Exits to be implemented
    Cheerz
    Ram

  • How to change destination table dynamically in configuration file in ssis?

    hello,
            i have a package i am having one data flow task.in data flow task i have one source and one destination.source and destination are different.i have created xml configuration file by configuring source and destination connection
    strings.
    now i want to change destination in the same server to different database with out opening the package.i want to directly change in the config file.we can change it by modifying configured value proerty and intial catalogue value.but if the table is not
    existed in the changed database.how we can create it dynamically.

    HI jiri Neoral,
                       thanks for reply,as you said above process by this we can do change only databasename.if in my destination database,the table which i used in package is not existed,can we create it dynamically
    using config file.later changing table name is possible?
    For that you need to have a step in SSIS package prior to data flow task to check if table exists and if not create it
    You can use  execute sql task with query like below
    IF OBJECT_ID('TableName') IS NULL
    CREATE TABLE TableName
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to change default values in SCC?

    Hi,
    does anyone knows how to change the default values of the Sybase Control Center e.g.:
    Activation Code Expiration (Hours) – indicates how long an activation code is valid. The default is 72 hours.
    Within SCC the field is deactivated, it's changeable after creating a connection, but I need to set it within the connection template.
    Thanks in advance, Christian

    You're right, but we want to change the default setting of the template, to avoid this step.
    Thanks, Christian

Maybe you are looking for