Reorganization of entities

Hello,
I work with Planning 11.1.2.1., without EPMA.
Entities is one of the dimension which represents our organization.
Periodically, the organization is mixed again. Consequently, the dimension's values must be renamed and replaced in the new hierachy.
I do that each time manually. The benefit is that data follows the structure, I just have to launch global agregation.
This time, the reorganization is larger than last time, and I have plenty entities to rename et replace.
It's become to be difficult manually.
So the question is :
Is there an automatic way to do that, for instance by updating the planning metadata ?
At lest to rename the entities ?
Thanks
Patrick

If you want to move members across parents then I guess you can do that using ODI and OutlineLoad utility.
AFAIK, renames you cannot do it directly with ODI and OutlineLoadUtility, Have a look at the link More to life than this...: ODI Series – Renaming planning members(* It is not officially supported though *)
Regards
Amarnath
http://amarnath-essbase-blog.blogspot.com

Similar Messages

  • How to? Populate sequence in 2 Entities comprising 1-1 View Object

    Hello all,
    In my DB model, I have modeled sub types of an entity by having a main table with the common fields and then separate tables (with 1-1 relationship) to the main table with the fields that are specific to each type. Each of these tables has an ID column as the PK. I have created a trigger on the main table to auto-populate the ID from a sequence. If I have a VO based upon 2 of the entities (in a 1-1 relationship), how can I get the sequence # from the main table in order to populate the specialized table?
    Regards,
    john

    The TreeViewAdaptor is responsible for mapping your custom data to the tree view itself.  I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
    Then, after you get it laid out and displaying properly, you can worry about using real data.  At that point, you have your adaptor return the actual number of items in your list and each individual item.  Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw.  At that point your adaptor will get called and your data should appear.
    Jon
    "Expert for hire"

  • Can not see any entities in The ER diagram

    I am trying to create an ER diagram from an existing database. I am using designer 10.1. I generated a server model, the table to entity retrofit successfully. I can see all the entities and attributes in the RON. But when I try to create ER diagram , I don't see any entities or attributes. Am I missing something ??
    Any help???? Thanks in advance..

    If version control is not turned on, then there is only one workarea, "GLOBAL SHARED WORKAREA" and EVERYTHING is in it. So that isn't the problem.
    Let's step through this a little:
    You start the E/R diagrammer and open a new diagram.
    You are prompted to Select a default container for this diagram, and you probably selected the application (an application is one of two types of containers) where you created the entities.
    So you have a blank diagram.
    You select the Edit menu, and "Include...", "Entity".
    You should get a window with a navigator in it, with the entities in the default container showing.
    If not, you should be able to open the tree to view and select those entities.
    Is this where you don't get the list of entities that you expected to see?
    One possible problem is Access Rights - in RON, right click the application, and choose "View Access Rights". Make sure that your username has the right to SELECT that application. By the way, you ARE using a username other than the owner of the repository, right? The only time you should connect as the repository owner is in the RAU. Use the RAU to grant another user (have the DBA create another user, if you haven't already) access to the repository. Then, in RON, make that user the owner of your application.

  • Lightroom 4-How to reorganize files by date when choosing to add rather than copy them to Lightroom

    My photos were in disorganized folders on different hard drives. I was able to import them into Lightroom 4 using COPY, and now my folders are reorganized by year and month on my hard drive, which is how I want them. However, I now have a copy of my photos in my catalog and a copy of each photo in my photo folder on my hard drive. This is taking up too much space. Is there a way to have Lightroom automatically import my pictures and reorganize them into folders by date using the ADD option rather than the copy option when importing from my hard drive? Thank you!

    You said:
    My photos were in disorganized folders on different hard drives. I was able to import them into Lightroom 4 using COPY, and now my folders are reorganized by year and month on my hard drive, which is how I want them.
    Meaning that they are still where they were, scattered, and not catalogued in LR.  PLUS, there is a copy of each file in the place you copied them to when you imported them, and these are the versions of the files that are catalogued in LR.  Right?
    You said:
    However, I now have a copy of my photos in my catalog and a copy of each photo in my photo folder on my hard drive.
    Yes, one set, the original ones, viewable only in Explorer/Finder, the other/duplicate set viewable in LR (and/or also in Explorer/Finder).
    You said:  This is taking up too much space.
    So just delete the original versions, as long as you are sure that you have them all in the copied-to location (where they are catalogued by LR).
    You said:
    Is there a way to have Lightroom automatically import my pictures and reorganize them into folders by date using the ADD option rather than the copy option when importing from my hard drive?
    As jd_paige says, next time use MOVE instead of COPY.  If you use ADD, they will remain where they are.  Sometimes it is easier to do it this way, and then move/reorganize them once you have them in the catalogue.

  • How to create a cache for JPA Entities using an EJB

    Hello everybody! I have recently got started with JPA 2.0 (I use eclipseLink) and EJB 3.1 and have a problem to figure out how to best implement a cache for my JPA Entities using an EJB.
    In the following I try to describe my problem.. I know it is a bit verbose, but hope somebody will help me.. (I highlighted in bold the core of my problem, in case you want to first decide if you can/want help and in the case spend another couple of minutes to understand the domain)
    I have the following JPA Entities:
    @Entity Genre{
    private String name;
    @OneToMany(mappedBy = "genre", cascade={CascadeType.MERGE, CascadeType.PERSIST})
    private Collection<Novel> novels;
    @Entity
    class Novel{
    @ManyToOne(cascade={CascadeType.MERGE, CascadeType.PERSIST})
    private Genre genre;
    private String titleUnique;
    @OneToMany(mappedBy="novel", cascade={CascadeType.MERGE, CascadeType.PERSIST})
    private Collection<NovelEdition> editions;
    @Entity
    class NovelEdition{
    private String publisherNameUnique;
    private String year;
    @ManyToOne(optional=false, cascade={CascadeType.PERSIST, CascadeType.MERGE})
    private Novel novel;
    @ManyToOne(optional=false, cascade={CascadeType.MERGE, CascadeType.PERSIST})
    private Catalog appearsInCatalog;
    @Entity
    class Catalog{
    private String name;
    @OneToMany(mappedBy = "appearsInCatalog", cascade = {CascadeType.MERGE, CascadeType.PERSIST})
    private Collection<NovelEdition> novelsInCatalog;
    The idea is to have several Novels, belonging each to a specific Genre, for which can exist more than an edition (different publisher, year, etc). For semplicity a NovelEdition can belong to just one Catalog, being such a Catalog represented by such a text file:
    FILE 1:
    Catalog: Name Of Catalog 1
    "Title of Novel 1", "Genre1 name","Publisher1 Name", 2009
    "Title of Novel 2", "Genre1 name","Pulisher2 Name", 2010
    FILE 2:
    Catalog: Name Of Catalog 2
    "Title of Novel 1", "Genre1 name","Publisher2 Name", 2011
    "Title of Novel 2", "Genre1 name","Pulisher1 Name", 2011
    Each entity has associated a Stateless EJB that acts as a DAO, using a Transaction Scoped EntityManager. For example:
    @Stateless
    public class NovelDAO extends AbstractDAO<Novel> {
    @PersistenceContext(unitName = "XXX")
    private EntityManager em;
    protected EntityManager getEntityManager() {
    return em;
    public NovelDAO() {
    super(Novel.class);
    //NovelDAO Specific methods
    I am interested at when the catalog files are parsed and the corresponding entities are built (I usually read a whole batch of Catalogs at a time).
    Being the parsing a String-driven procedure, I don't want to repeat actions like novelDAO.getByName("Title of Novel 1") so I would like to use a centralized cache for mappings of type String-Identifier->Entity object.
    Currently I use +3 Objects+:
    1) The file parser, which does something like:
    final CatalogBuilder catalogBuilder = //JNDI Lookup
    //for each file:
    String catalogName = parseCatalogName(file);
    catalogBuilder.setCatalogName(catalogName);
    //For each novel edition
    String title= parseNovelTitle();
    String genre= parseGenre();
    catalogBuilder.addNovelEdition(title, genre, publisher, year);
    //End foreach
    catalogBuilder.build();
    2) The CatalogBuilder is a Stateful EJB which uses the Cache and gets re-initialized every time a new Catalog file is parsed and gets "removed" after a catalog is persisted.
    @Stateful
    public class CatalogBuilder {
    @PersistenceContext(unitName = "XXX", type = PersistenceContextType.EXTENDED)
    private EntityManager em;
    @EJB
    private Cache cache;
    private Catalog catalog;
    @PostConstruct
    public void initialize() {
    catalog = new Catalog();
    catalog.setNovelsInCatalog(new ArrayList<NovelEdition>());
    public void addNovelEdition(String title, String genreStr, String publisher, String year){
    Genre genre = cache.findGenreCreateIfAbsent(genreStr);//##
    Novel novel = cache.findNovelCreateIfAbsent(title, genre);//##
    NovelEdition novEd = new NovelEdition();
    novEd.setNovel(novel);
    //novEd.set publisher year catalog
    catalog.getNovelsInCatalog().add();
    public void setCatalogName(String name) {
    catalog.setName(name);
    @Remove
    public void build(){
    em.merge(catalog);
    3) Finally, the problematic bean: Cache. For CatalogBuilder I used an EXTENDED persistence context (which I need as the Parser executes several succesive transactions) together with a Stateful EJB; but in this case I am not really sure what I need. In fact, the cache:
    Should stay in memory until the parser is finished with its job, but not longer (should not be a singleton) as the parsing is just a very particular activity which happens rarely.
    Should keep all of the entities in context, and should return managed entities form mehtods marked with ##, otherwise the attempt to persist the catalog should fail (duplicated INSERTs)..
    Should use the same persistence context as the CatalogBuilder.
    What I have now is :
    @Stateful
    public class Cache {
    @PersistenceContext(unitName = "XXX", type = PersistenceContextType.EXTENDED)
    private EntityManager em;
    @EJB
    private sessionbean.GenreDAO genreDAO;
    //DAOs for other cached entities
    Map<String, Genre> genreName2Object=new TreeMap<String, Genre>();
    @PostConstruct
    public void initialize(){
    for (Genre g: genreDAO.findAll()) {
    genreName2Object.put(g.getName(), em.merge(g));
    public Genre findGenreCreateIfAbsent(String genreName){
    if (genreName2Object.containsKey(genreName){
    return genreName2Object.get(genreName);
    Genre g = new Genre();
    g.setName();
    g.setNovels(new ArrayList<Novel>());
    genreDAO.persist(t);
    genreName2Object.put(t.getIdentifier(), em.merge(t));
    return t;
    But honestly I couldn't find a solution which satisfies these 3 points at the same time. For example, using another stateful bean with an extended persistence context (PC) would work for the 1st parsed file, but I have no idea what should happen from the 2nd file on.. Indeed, for the 1st file the PC will be created and propagated from CatalogBuilder to Cache, which will then use the same PC. But after build() returns, the PC of CatalogBuilder should (I guess) be removed and re-created during the succesive parsing, although the PC of Cache should stay "alive": shouldn't in this case an exception being thrown? Another problem is what to do when the Cache bean is passivated. Currently I get the exception:
    "passivateEJB(), Exception caught ->
    java.io.IOException: java.io.IOException
    at com.sun.ejb.base.io.IOUtils.serializeObject(IOUtils.java:101)
    at com.sun.ejb.containers.util.cache.LruSessionCache.saveStateToStore(LruSessionCache.java:501)"
    Hence, I have no Idea how to implement my cache.. Can you please tell me how would you solve the problem?
    Many thanks!
    Bye

    Hi Chris,
    thanks for your reply!
    I've tried to add the following into persistence.xml (although I've read that eclipseLink uses L2 cache by default..):
    <shared-cache-mode>ALL</shared-cache-mode>
    Then I replaced the Cache bean with a stateless bean which has methods like
    Genre findGenreCreateIfAbsent(String genreName){
    Genre genre = genreDAO.findByName(genreName);
    if (genre!=null){
    return genre;
    genre = //Build new genre object
    genreDAO.persist(genre);
    return genre;
    As far as I undestood, the shared cache should automatically store the genre and avoid querying the DB multiple times for the same genre, but unfortunately this is not the case: if I use a FINE logging level, I see really a lot of SELECT queries, which I didn't see with my "home made" Cache...
    I am really confused.. :(
    Thanks again for helping + bye

  • Unable to load entities into Planning using OutlineLoad utitlity

    Good day all,
    One of our Planning admins needs us to load some new entities for her. We've done this off and on with her Planning app for the last year without a problem. However, over the last couple of days we have not been able to load her latest metadata. She's massaged the load file almost half a dozen times and we get the same error message every time. If anyone has any ideas what it does not like about the header values, I would very much appreciate any feedback.
    We are currently running EPM Planning 11.1.1.3.04
    Successfully logged into "HPEGGD" application, Release 11.113, Adapter Interface Version 5, Workforce supported and not enabled, CapEx not supported and not enabled, CSS Version 3
    [Wed Nov 23 09:47:30 CST 2011]Successfully located and opened input file "D:\FILES\Entity_ISG_11_23_11.txt".
    [Wed Nov 23 09:47:30 CST 2011]Header record fields: Parent, Entity, Alias: Default, Alias: Member-Alias, Aggregation (HPEGGD), Aggregation (HPEGGD2), Aggregation (HPEGGD3), Two Pass Calc, Expense, Time Balance, Time Balance Skip, Data Storage, Level Number, Attributed, WF_Group, Shared_Projects, Contract_Type, Agency, Bus_CC_Mgr, Dom-Intl, ID_Number, Segment, Source_System
    [Wed Nov 23 09:47:30 CST 2011]Located and using "Entity" dimension for loading data in "HPEGGD" application.
    [Wed Nov 23 09:47:30 CST 2011]Unable to obtain dimension information and/or perform a data load: Unrecognized column header value(s), refer to previous messages. (Note: column header values are case sensitive.)
    [Wed Nov 23 09:47:30 CST 2011]Examine the Essbase log files for status if Essbase data was loaded.
    [Wed Nov 23 09:47:30 CST 2011]Planning Outline data store load process finished with exceptions: not all input records were read due to errors (or an empty input file). 0 data records were read, 0 data records were processed, 0 were successfully loaded, 0 were rejected.
    Thanks in advance for the assistance.
    Regards,
    -Bob

    One more massage did the trick.

  • How can i generate simple Entities and View Objects ... automatically ?

    Hello eveybody,
    I hope this is the right place i'm posting in. My question is ADF/Jdeveloper related.
    Here is my problem. Where i work, we use xsd files to design our beans and we generate java classes from this xsd file. Then we design these beans again through Jdeveloper when creating Entities and related views, associations, view links... so we design our beans two times ... Moreover, 90% of the time, the work we do using Jdeveloper is the following : Writing CRUD operation that are almost the same every time.
    So my question is very simple. What do you think is the best way to automatically generate entities, views, associations, views Links and why not module (module.xml and an empty implementation) from our xsd files. Then we'll use JDeveloper to customize the generated files.
    Your help would be very appreciated, brahim !
    Edited by: user10394923 on 29 oct. 2008 06:01

    I didn't understand the role of the beans that you generate from the XSD files. When you use ADF Business Components, you don't need those beans at all and you don't need to write code for any of the CRUD operations. Can you clarify what role the beans play in the application?

  • HTML Editor - converting "special characters" into entities

    Hi everyone,
    I'm currently in the middle of formatting my wife's novel into 'clean' html so I can use Calibre to create a well formatted epub/mobi/etc.
    I've read that TextMate on Mac includes a function to "Convert Selection to Entities excluding Tags".  In other words it will replace all special characters (ellipses, copyright sign, etc) with the html entities.
    I'm currently using Kate and I can't seem to find anything similar.  Is anyone aware of any linux editors with the same function?
    Thanks for the help!

    ctarwater wrote:Encoding is already UTF-8 but I'm trying to make these docs as "universal" as possible and I've read that little things like replacing quotation marks and other symbols with their html entities is a good step in that direction.
    In situations with multiple encodings this might be the case, but the XML spec requires UTF‐8 support at minimum and defaults to it when the encoding is not declared. All XML parsers can deal with UTF‐8.
    In fact, replacing UTF‐8 characters with entities is less portable in XML. This is because the available entities are defined by the doctype, and XML only supports five by default (&lt;, &gt;, &quot;, &amp;, and &apos;). Things like &hellip; are defined in the HTML and XHTML doctypes, but not in other dialects of XML. This used to bite RSS pretty hard (probably still does), because people assumed the entities were available everywhere when they’re really not. EPUB and Mobi are based on XHTML, but other formats might use other XML dialects.

  • Transforming to HTML and problems with incorrect entities for quotes

    Hello,
    I have a seemingly fairly simple problem, I have a DOM tree which I would like to convert to HTML.
    This works fine, also for special characters like umlauts - they are escaped with the correct html entities.
    However single and double quotes are not escaped at all. Do I need to define custom entities for that?
    Sample code:
    package generaltests;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class XmlTransform {
    public static void main(String args[]) {
    try {
    DocumentBuilderFactory dbfac =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = dbfac.newDocumentBuilder();
    Document doc = docBuilder.newDocument();
    //<QBXML>
    Element root = doc.createElement("ROOT");
    doc.appendChild(root);
    Element text = doc.createElement("TEXT");
    root.appendChild(text);
    text.appendChild(doc.createTextNode("Test text\n< With special character ' and umlaut �"));
    // Transformation
    TransformerFactory transfac = TransformerFactory.newInstance();
    Transformer trans = transfac.newTransformer();
    trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
    trans.setOutputProperty(OutputKeys.METHOD, "html");
    trans.setOutputProperty(OutputKeys.ENCODING, "US-ASCII");
    //create string from xml tree
    StringWriter sw = new StringWriter();
    StreamResult result = new StreamResult(sw);
    DOMSource source = new DOMSource(doc);
    trans.transform(source, result);
    System.out.println(sw.toString());
    } catch (Exception e) {
    }Output is (the first left bracket in the second line is actually escaped correctly and only transformed to < in this post):
    <ROOT><TEXT>Test text
    < With special character ' and umlaut &ouml;</TEXT></ROOT>Edited by: tzu22 on Apr 16, 2008 1:44 AM
    Edited by: tzu22 on Apr 16, 2008 1:50 AM

    & quot; and & apos; have to be used for attribute values. For text nodes, " and ' can be used as ordinary characters.
    Edited by: Alain_COUTHURES on Apr 16, 2008 8:32 AM

  • HTML character entities problem in saved regex search and replace query

    I have a many search and replace regular expression queries (.dwr files) that I have saved. I have a problem specifically with saved queries that contain HTML entities such as "& nbsp ; " or "& shy ;" (spaces added otherwise code doesn't render in browser). For example if I use the following search:
    ([\d]{3}& shy ;[\d]{3}& shy ;[\d]{4}|[\d]{3}& nbsp ;[\d]{3}& nbsp ;[\d]{4})
    (which searches for numbers in the 888-555-1234 or 888 555 1234 formats)
    This will work fine if I manually enter it into the search text area. However if I save it to file and reload it, it will no longer work because the &shy; and   characters are now displayed as " " (space) and "-"(shy) rendering the saved query useless as it's no longer searching for the code. I have some fairly long and complex queries and this is becoming a problem.
    Thanks for any help.
    I'm currently using Dreaweaver CS4 at home and CS5.5 at work.

    Thanks for your reply Kenneth, but that is not what I'm trying to accomplish. I'm looking for the HTML entities that exist in the source code which are & shy ; and & nbsp ; (without the spaces). As I mentioned above, if I enter them manually in the search box, I will get the corrrect results. If I save the search and then reload it, the special characters are no longer in HTML and the search is now useless.
    Just for example again
    In an open document in code view insert a number in the format (without the spaces): 888& nbsp;888& nbsp ;8888
    Open a search dialog box and enter (without the spaces): [\d]{3}& nbsp ;[\d]{3}& nbsp ;[\d]{4}
    The search will find that entry.
    Save search as phone.dwr for example. Then load it and try the search again. It won't work because upon loading the search Dreamweaver replaces the HTML code which was saved with the rendered HTML. So now the search shows up as: [\d]{3} [\d]{3} [\d]{4} which will not find the string with hard coded non-breaking spaces that I'm looking for.
    Basically I want to be able to save a search query for reuse. When I load a search query, I want it to be exactly what I saved, not something that DW has rendered (that doesn't work).

  • How to use composite entities which driven by different PU via hibernate

    Hi experts,
    There are 2 different persistence unit in my project.
    PU_A: Application entities, that can execute all crud operations.
    PU_B: This one has some views which contains outside data. I can just read data from here
    But i want to create foreign key in some entities which are in PU_A by using immutable-entity which managed by PU_B persistence-unit.
    If you could view on following snippets. I have IncomingPaperwork entity which is driven by PU_A and ProjectView which is driven by PU_B.
    After i applied this issue; When deploy the application exception that is below occured :
    30-Jan-2013 15:13:05 o'clock EET> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.ejb.container.deployer.EJBModule$1.execute(EJBModule.java:326)
         at weblogic.deployment.PersistenceUnitRegistryInitializer.setupPersistenceUnitRegistries(PersistenceUnitRegistryInitializer.java:62)
         at weblogic.servlet.internal.WebAppModule.initPersistenceUnitRegistry(WebAppModule.java:411)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:365)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         Truncated. see log file for complete stacktrace
    Caused By: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.acme.model.entity.IncomingPaperwork.projectView references an unknown entity: com.acme.integrationmodel.entity.ProjectView
         at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:81)
         at org.hibernate.cfg.AnnotationConfiguration.processEndOfQueue(AnnotationConfiguration.java:456)
         at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:438)
         at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:309)
         at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1162)
         Truncated. see log file for complete stacktrace
    >
    [03:13:05 PM] #### Deployment incomplete. ####
    Is there a way to achieve this? Any suggestions?
    Thanks in advance
    ___persistence.xml___
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
    version="2.0">
    <persistence-unit name="PU_A" transaction-type="JTA">
    <description>This unit manages all application entities</description>
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <jta-data-source>jdbc/A_DS</jta-data-source>
    <class>com.acme.model.entity.IncomingPaperwork</class>
    <properties>
    <property name="hibernate.jndi.url" value="t3://localhost:7101"/>
    <!--DataSource-->
    <property name="hibernate.connection.datasource"
    value="jdbc/A_DS"/>
    <property name="hibernate.transaction.manager_lookup_class"
    value="org.hibernate.transaction.WeblogicTransactionManagerLookup"/>
    <property name="hibernate.dialect"
    value="org.hibernate.dialect.Oracle10gDialect"/>
    <property name="hibernate.hbm2ddl.auto" value="update"/>
    <property name="hibernate.show_sql" value="true"/>
    <property name="hibernate.format_sql" value="true"/>
    <property name="hibernate.use_sql_comments" value="true"/>
    <property name="hibernate.current_session_context_class" value="jta"/>
    <property name="hibernate.archive.autodetection" value="jar,class"/>
    </properties>
    </persistence-unit>
    <persistence-unit name="PU_B" transaction-type="JTA">
    <description>This unit manages all integration entities</description>
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <jta-data-source>jdbc/B_DS</jta-data-source>
    <class>com.acme.integrationmodel.entity.ProjectView</class>
    <properties>
    <property name="hibernate.jndi.url" value="t3://localhost:7101"/>
    <!--DataSource-->
    <property name="hibernate.connection.datasource"
    value="jdbc/B_DS"/>
    <property name="hibernate.transaction.manager_lookup_class"
    value="org.hibernate.transaction.WeblogicTransactionManagerLookup"/>
    <property name="hibernate.dialect"
    value="org.hibernate.dialect.Oracle10gDialect"/>
    <property name="hibernate.hbm2ddl.auto" value="validate"/>
    <property name="hibernate.show_sql" value="true"/>
    <property name="hibernate.format_sql" value="true"/>
    <property name="hibernate.use_sql_comments" value="true"/>
    <property name="hibernate.current_session_context_class" value="jta"/>
    </properties>
    </persistence-unit>
    </persistence>
    ___IncomingPaperwork.class___
    import com.arsivist.structure.BaseEntity;
    import com.acme.integrationmodel.entity.ProjectView;
    import com.acme.model.entity.listener.EntityListener;
    import com.acme.model.entity.listener.IncomingPaperworkListener;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.EntityListeners;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.SequenceGenerator;
    import javax.persistence.Table;
    @Entity(name = "IncomingPaperwork")
    @Table(name = "INCOMINGPAPERWORKS")
    @SequenceGenerator(name = "INCOMINGPAPERWORK_SEQ", sequenceName = "INCOMINGPAPERWORK_SEQ", allocationSize = 1)
    @EntityListeners( { EntityListener.class, IncomingPaperworkListener.class })
    public class IncomingPaperwork extends BaseEntity
    private Company company;
    private ProjectView projectView;
    public IncomingPaperwork()
    entityName = "IncomingPaperwork";
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "INCOMINGPAPERWORK_SEQ")
    @Column(name = "ID")
    public int getId()
    return id;
    public void setId(int id)
    this.id = id;
    public void setCompany(Company company)
    this.company = company;
    @ManyToOne(targetEntity = com.acme.model.entity.Company.class, cascade = { })
    @JoinColumn(name = "COMPANYID", nullable = false)
    public Company getCompany()
    return company;
    public void setProjectView(ProjectView projectView)
    this.projectView = projectView;
    @ManyToOne(targetEntity = com.acme.integrationmodel.entity.ProjectView.class, cascade = { })
    @JoinColumn(name = "PROJECTVIEWID")
    public ProjectView getProjectView()
    return projectView;
    ___ProjectView.class___
    import com.arsivist.structure.BaseEntityView;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import org.hibernate.annotations.Immutable;
    import org.hibernate.annotations.Subselect;
    @Entity(name = "ProjectView")
    @Immutable
    @Subselect("SELECT * FROM ProjectView")
    public class ProjectView extends BaseEntityView
    private String code;
    private String name;
    public ProjectView()
    entityName = "ProjectView";
    public ProjectView(int id, String name)
    entityName = "ProjectView";
    this.id = id;
    this.name = name;
    @Id
    @Column(name = "ID")
    public int getId()
    return id;
    public void setId(int id)
    this.id = id;
    public void setCode(String code)
    this.code = code;
    @Column(name = "CODE")
    public String getCode()
    return code;
    public void setName(String name)
    this.name = name;
    @Column(name = "NAME")
    public String getName()
    return name;
    @Override
    public String toString()
    return "" + getName();
    Edited by: webyildirim on Jan 30, 2013 5:36 AM

    Not quite what I meant - I was suggesting you load the entity immediately after reading it from PU_B, or anytime before associating it into PU_A, so before the merge. What you have not shown though is any code on how you are obtaining IntegrationDepartment and integrating it into PU_A, or what you mean by it is returning a refreshed version of Topic. This problem could also be the result of how your provider works internally - this is a TopLink/EclipseLink forum post so I cannot really tell you why you get the exception other than it would be expected to work as described with EclipseLink as the JPA provider.
    So the best suggestions I can come up with are prefetch your entity, try posting in a hibernate forum, or try using EclipseLink/TopLink so someone here might be better able to help you with any problems that arise.
    Best Regards,
    Chris

  • Comparing fields from multiple entities in the same report (report builder 1.0)

    Created a model that contains 2 entities. I open that model in report builder 1.0.  When I drag a field from one of the entities into the design area, i can no longer see the other entity or use any of the fields from that other entity. 
    I need to use fields from both entities in the same report (join tables).  In management studio i would simply write a query and join tables but i cannot figure out how to do this in report builder.  Once i select a field from one entity
    how do i select fields from more than one entity and drag them into the same report.

    Would it be possible for you to send me instructions for this? I am not that familiar with SQL coding but I can definitely figure it out. I have been wanting to get information on reports from multiple entities for a very long time! The only way I can
    currently do it is have our document management software people write the report for me for quite a large fee. I would much rather do this myself. Right now I can select a few fields from one entity (the main one), some from a second entity under that one,
    but I cannot add any fields from a third entity! Quite annoying and hindering! Thank you :)

  • How do I create a custom inline subgrid for Custom entities in MS CRM 2013

    Hi All,
    We have a requirement to create a custom inline subgrid for custom entities same as like that in OOB of CRM Subgrid.
    Is this possible to do for custom entities?
    Please let me know.
    Thanks in advance....
    Gopinath V.

    Hello,
    Yes. You can develop such kind of grid using Silverlight or Html/Css/Js. You can check following article as a good started -
    http://www.sparklexrm.com/s/Tutorials/QuoteEditor.html
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Display attributes from "global" and other entities in a single screen

    As far as I know, in OPM attributes of only one type of entity can be added to any given screen.
    As per of functional requirements of my current project Ihave to display attributes from more than one type of entity in some of the screens.
    I found a workaround for entities which has only one instance (singleton entity in version 10.1), but couldn’t figure out how to display attributes of entities which has multiple instances.
    For example:
    We have an entity called <b>“the child”</b> which has many attributes. There can be more than one child instances defined in a given assessment session.
    This particular screen should have attributes which belong to the <b>"global"</b> and <b>"the child"</b> instances.
    (The names of all the children should be displayed on the screen as <b>check boxes</b> so the user can select the children who are affected by the global attributes displayed on the screen.)
    Is this achievble in OPM 10.1?
    SP1D3R MAN

    Displaying Global attributes and nested entity level attributes on the same question screen cannot be done in OPM 10.1 with out-of-the-box functionality. It would have to be a custom screen. (FYI, I'm not a programmer so I can't advise on how to build such a custom screen.)
    Before building customisations, you should also consider whether you really need to use an old version of the product. OPA 10.1 was released early last year; the current version is 10.3.

  • In Numbers, how can I save a filter sequence using Reorganize?

    I'm using Numbers (from iWorks 9) and have a filterning sequence that involves a date range and finding specific values in a text column.  It's pretty straightforward to use the Reorganize button, but my macro program (QuicKeys) can't seem to negotiate the nested pull-down menu selections, so is there a way to save this sequence within Numbers?

    File menu, Export. Select Excel as the format.

Maybe you are looking for

  • How to import a album with multiple artists in the one album?

    How do I import a album with multiple artists as the one album.  Everytime I try to do this it does not collate it into one album, the other artists come up seperatley, also if this is possible can you set so that it works automatically everytime? Ho

  • RegisterFont when running local doesn't work.

    Hi guys anybody knows why Font.register(class) doesn't work when i run from my local machine? the fonts.swf is loaded from a server loading fires a complete event so that should be fine. However when i load the fonts.swf also from local machine then

  • Minimum slide size change

    I would like to make a banner or rail slide (720x90) but cant seem to make any slide less than 200pixels (H or W). I would like to export as fla after. How can I make a slide smaller than the custom size will allow? (under 200 pixels either way). Is

  • Suggestion-Let us choose what videos to sync to devices

    Why can you not choose exactly what music videos to sync to your iphone or other apple devices?  I just want a few videos on my iphone, NOT all 200 of them.  Is there a way to choose exactly what music videos to sync?  Thank you for your assistance.

  • Does Oracle log errors for me?

    Hi All, Quick question here: I am receiving the following error upon insert: Code: ORA-00904: invalid column name in DB Manager function: ExecuteSQL Does the database log which table had the wrong insert? This is happening in code that I don't have e