Use of class PersistentProxy for super class part 3


Hello



I use the PersistentProxy class for 3 ^ rd ^ class super party. Please see code below for the proxy class.



@Persistent(proxyFor=AIAMessageHeader.*class*)


public class AIAMessageHeaderProxy implements PersistentProxy & lt; AIAMessageHeader & gt; {






public AIAMessageHeader convertProxy() {}


AIAMessageHeader h = null;


Some code here


return h;


}



public void initializeProxy (AIAMessageHeader h) {}


Some code here


}



}



I don't know how to save this proxy class using EntityModel:registerClass method before opening EntityStore. Before the store opened, entity model object is null. I tried to create an object of class AnnotationModel and register, indented by using the StoreConfig setModel method. But no help!



Can someone put this snippet? Without registration, it throws following exception.



Exception in thread "main" java.lang.IllegalArgumentException: persistent class superclasse a non-persistent:

Hi tibo,.

One of my colleagues told me that it is not possible to use the 3rd party as a base class for a class of @Persistent/@Entity. I can't stand not that, even if the base class has a proxy (as is the case with your code). Proxy classes can only members of @Persistent/@Entity, not their great class classes. Persistent proxies have been designed to instances of any power of Attorney, not only a part of the class of an instance hierarchy.

We'll fix the javadoc in the next version to reflect this.

So I think that the answer is to have TestData have a field that refers to your class library.

Charles Lamb

Tags: Database

Similar Questions

  • I have Dreamweaver CC15 and teach a class using a book written for the version CC14. I want to upgrade my software to go to the lower version.

    I have Dreamweaver CC15 and teach a class using a book written for the version CC14. I want to upgrade my software to go to the lower version.

    Hello

    Refer to the steps below, to get the previous version: -.

    http://blogs.Adobe.com/adobecare/2015/06/16/how-to-find-and-install-previous-version-of-ad obe-apps-in-cc-2015.

    Hope this helps!

  • using the .class in css ID.

    creation of boxes on my site.  each box will be the same size, have the same rollover effects and everything, but the only difference is the color of the boxes and hyperlinks will be different for each box.

    I know that I can create these as a 'class id' in css, but won't that make sure all the boxes must have the same background color? How can I do this? Using the class option will make me a ton of time, but is not only of course how to make each a different color of the box.

    Your CSS syntax is incorrect-

    . Blue: {}

    This should be present-

    . Blue {}

  • Can I use multiple < class p 'logos' = > tag with the same name in the same html page?

    I was told do not to use the < div class > tags too many times. I used them for the texts, the images, to clear the floats, basically, I built my website using multiple < div class > tags. So if I can not use several tags < div class > can I use the tags < class p > several times in the same html page?

    I have a string of logos at the bottom of my Web page that all use the same css for all logos features. It would be the right way to write the code:

    HTML

    < class p 'logos' = > Logo1 < a href = "... > < /a > < /p >"

    < class p 'logos' = > Logo2 < a href = "... > < /a > < /p >"

    < class p 'logos' = > Logo3 < a href = "... > < /a > < /p >"

    < class p 'logos' = > Logo4 < a href = "... > < /a > < /p >"

    < class p 'logos' = > Logo5 < a href = "... > < /a > < /p >"

    < class p 'logos' = > Logo6 < a href = "... > < /a > < /p >"

    CSS

    .logos {}

    margin-left: 10px;

    }

    Here is my site: http://www.darbymanufacturing.com/test_website/index.html - this is the site built with all the tags div class

    I restarted the site in order to write the code correctly so that I don't come from errors when downloading from the server, as I have with the above link.

    However, custom (and it's only a good one I think) are to use IDS to identify the primary container on your page.  Clearly you usually only have one header, content, footer, etc., area on a page.  This allows you to immediately identify where these rules apply.  Using a more generic class selector does not give you the same immediate locatability.  In addition to this, ID selectors have a specificity greated than the class selectors, which reinforces the rules cascade in the specific containers.

  • Memory use and class of the custom movie clip?

    Hello

    I need to create instances of a clip 100. Is it better to add functions for these clips in the movie clip class or in a separate category?

    For example, I move(), setPosition(), setRotation() functions, would be that create these features a hundred times and held memory or just reference functions? What could be better?

    Thank you

    There is a slight advantage to create a function to handle all objects of class vs each class having its own class.  but it's such a small benefit that's not worth it to sacrifice any principle of encapsulation, so you should let each Member of the class to use the class methods.

  • Using the class Tween w / dynamic text

    Hi all

    I feel sort of my way along here. I'm certainly not an expert in what I'm looking for.

    I created a small flash animation that imports data from an XML file into different six fields of text and one image. It works wonder.

    However, the customer would be as a kind of animation on the text so it fade, scaling, color changing, movement... whatever. I've only used the class tween once but that sounds like the way to go (I think...?).

    I'm stuck. I've been searching the Net and I can't seem to make sense what I read when it comes to use the Tween class with dynamic text.

    I enclose my actionscript.

    Can someone point me in the right direction?

    Thank you!!

    Nevermind, I think I found what I needed. Thank you guys!

  • While creating a slide show with pictures, can you assign music to a specific set of photos? I would use 5 different pieces of music for every 5 parts of my slide show.

    While creating a slide show with pictures, can you assign music to a specific set of photos? I would use 5 different pieces of music for every 5 parts of my slide show.

    No, you can't.  One solution is to create 5 different slideshows and export them to the office where you can bring together them in a single quicktime movie file and use it.

    If you have a copy of iMovie 6 HD, it can be hacked to work with El Capitan. With it you can assign exactly music groups of slides in the slide show:

  • I used to have demand for the library and messenger live but its all parties.

    I used to have demand for the library and messenger live but its all parties.

    I tried to reinstall them like the way that several times, but they said that I already have when I don't have them. What should I do?

    Hello

    1. did you of recent changes on the computer?

    2 are you referring to Windows live essentials?

    I suggest that you uninstall the programs on the computer and try to reinstall the latest version, check if it works.

    How to remove and reinstall Windows Live Services

    http://support.Microsoft.com/kb/938275

    If the previous step fails, then you can post your request in the forums of Windows live.

    http://windowslivehelp.com/

  • Computer laptop HP DV6 freezes when on the power of the battery, for the most part using Firefox. Looking for help in debugging

    Is there anywhere I can look to see what is running or happening when my PC crashes?

    BACKGROUND:

    My PC has been freezing more frequently lately.

    It seems to happen more often when I am on battery, usually when I am online using Firefox my default browser.

    I tried checking the event viewer, but did not find much, and do not know, I am interested in the right part.

    I can say without a doubt it happens when it is on battery power, almost never when it is plugged.

    In addition, it seems to happen more frequently when I use Firefox, but then I'm usually just surf when I'm on battery.  When I don't really work, I tend to sit at a desk and connect.

    Here are my specs:

    HP Pavilion dv6-3120us laptop

    Product number: XG871UA

    OS: Windows Home Premium Service Pack 1

    Browser: Firefox Chrome for the most part, other times

    I'm starting to capture when / where it happens the more frequntly in a strive to locate the problem.

    I'll try to turn off Firefox addins / extensions as a first step, but would like any other tips.

    Thank you!
    Ian

    I did a quick check this week, surfing on the battery while using Firefox, I fell two times.  Once run it normally, first with all add-ons disabled.

    When I switched to Chrome I had any problems.

    I'll close this and call it a problem of Firefox, I'll open a new ticket if it appears elsewhere.

    But I'll check the both battery test.

    Thank you!
    Ian

  • I need help with the use of Class.forName and getResourceAsStream

    I am trying to write code that will play an audio file. All references I found the point of code as follows...

                              Class dir = Class.forName("lib.testother");
                                InputStream input = dir.getResourceAsStream("/explosion.aac");
                                Player player =
                                    javax.microedition.media.Manager.createPlayer(input, "audio/aac");
                                player.realize();
                                VolumeControl vol = getVolumeControl(player);
                                if (vol != null)
                                {
                                    int volume = vol.getLevel();
                                    vol.setLevel(volume);
                                }
                                player.prefetch();
                                player.start();
    

    I use Blackberry JDE. Now, I'm supposed to put the audio file of the project?

    Second, how then use the class.forName function? I put the audio file as a member of the project and then tried the above code and I get that it can not find lib.testother (which is the path of the code).

    If I use getClass() instead of dir above, getResourceAsStream returns null.

    Are there examples of the use of these or how to include the audio in your project... from end-to-end. The code snippet above is all I could find and it isn't enough.

    THX

    D

    Check this thread:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=11616&query.ID=18...

  • How to use a class in Flash

    I am trying to use a class (LoadSwf.as) in Flash. The code is listed below. Here is my code in Flash:
    import LoadSwf
    var myLoader:LoadSwf = new LoadSwf()
    addChild (myLoader)

    The imported file (Login1.swf) contains a very simple ComboBox. When it is loaded into Flash ComboBox fails. Why is this happening? Thank you!

    I think you should add the loader to the display list when the loader is complete:

  • How to use this class

    The following code is a class I want to use (Arc.as), but it doesn't have a constructor function (i.e. public void Arc()). How to use this class in Flex? I also placed the code I thought I could use.

    Yes, in the example of the arc, in the change of loop(e:Event):
    removeChild (sp);
    TO:
    container.removeChild (sp);

  • [ADF, JDev12.1.3] Which is the best way to define the properties of CIU/fragments of pages. Is the approach that I have used a good choice (for a beginner)?

    Hallo,

    in my app, that I have a lot of pages and fragments in which properties (for example rendered text, disabled, Selected,...), lots of user interface components must be set, before/when the page is displayed, depending on the session and pageFlow scope attributes.

    So far I have created for each page/one backingBean brought bean fragment in which I defined an attribute for each property defined (e.g. 2 properties for each UIC: UIC is 10...) "I have 20 attributes to manage in the bean).

    Then, I linked each attribute of the bean to the respective UIC property. You can see in this my thread (unfortunately without answers ) [ADF, JDev12.1.3] backingBean bean: a lot of properties to set for lots of CIU... is better by using the properties of the binding or access code (created by ID) UIC? a small example. I put the attributes the bean Builder (or in a function of 'action' if the APP properties must be set based on the interaction of the user).

    I would like to know:

    • If it is a good approach / recommended / safe or if there is a better way;
    • If the scope backingBean is OK, or if a larger scope would be better.

    As I asked in the thread in the link above, the situation can become difficult to manage if the PPP for which setting, properties are very different.

    So I'd like if there is no alternative that I can use to get the same result with less effort.

    For example, using the class ComponentReference or invokeOnComponentAPI could simplify my life? And their use could I always use backingBean brought beans?

    Thank you

    Federico

    Federico, please understand that this forum has no sla. I have other work to do, who pays my bills. I will do my best to help, but you can not expect the instant replay.

    (1) you must not use the bean to init your beans. You can delay load or init your beans instead.

    (2) as Frank and says you can use a bean to view range and use it to make your calculations as long as you know how their parameters go to the btf

    (3) you should always use the reference of the component if you bind a component to a bean. Make a habit of all scopes.

    As we do not know how you calculate the State and how often it changes while the Working Group is on the page, it is difficult to give further advice.

    Timo

  • I have a Wacom tablet and would like to know if it would be useful or even necessary for my future Adobe Photoshop and Illustrator.

    I will attend an online college class, what is Web Design. To do this, I bought a Wacom tablet because I think that it may be useful or even necessary for my future Adobe Photoshop and Illustrator. Because I don't know, why I ask if must be is useful.

    It's a definite yes. It is more precisely that the mouse is and provides pressure values which will be important for all the work of brush. Same Illustrator uses of them.

    There will be many images of cutting of the web page, so it makes sense to have a specific tool to do the job.

    One last thing, it will help prevent carpal in the wrist. If you already have it will bring some relief. If nothing else as a way to change how you hold the hand for a while.

    It's going to take some time making use of the Tablet, so keep a mouse around, especially at school. Nothing worse than frustrated when your sub a lack of time. Play with the tablet at home used to it, when you feel comfortable with him, and then try to school. Just be prepared to use the mouse when your under pressure. Over time this will not be a problem.

  • MacBook Pro (retina, 15 inches, beginning 2013) El Capitan 10.11.3, Simple question here: I can't open FinalCut Express (4, I believe). The wheel turns for hours. How can I install/uninstall and will I lose all my old films (for the most part stored on ex

    MacBook Pro (retina, 15 inches, beginning 2013) El Capitan 10.11.3, Simple question here: I can't open FinalCut Express (4, I believe). The wheel turns for hours. How can I install/uninstall and will I lose all my old films (for the most part stored on external hard drives). Thanks for your suggestions.

    You will not lose anything, but the app if you uninstall. If you decide to uninstall use this app to make sure that all the other files which depends on FCE are also deleted however I can't give you any assurance as to whether you will be able to reinstall so that it works correctly. It is a software that has not been supported for almost 5 years and there are conflicting reports as to its compatibility with OS X 10.11. Can't I test it myself.

    Maybe someone else will chime in with their own experiences.

    Russ

Maybe you are looking for

  • Laptop turns off when you import CDs into itunes or Realplayer

    When I try to import CDs into itunes or Realplayer my laptop turns off. This happens sometimes after track 3-4 or 1-2 CDs. Any suggestions? Hilary [Edited by: admin on 21 January 06 11:14]

  • HP Photosmart printer DS110 series

    All of a sudden, my printer does not print. I had the opportunity to solve the problems, and he says that the printer is not found on the network.  I'm not a person knowledgeable about these things, what should I do?

  • Problems with the print e-mail

    I have hotmail and now when I try to print a message in the right side of the page shows ad, the left shows my e-mail folders and in the Middle has only the middle part of the message. I tried to change the margins, etc., and it does nothing to help.

  • WEP versus WPA2Personal

    I set up my wireless router Linksys and used the WEP option.  Is there a difference between that and WPA2personal. When I look at my security settings on my TIVO it shows security: WEP Configuration open.  It does not require typing in 26 hexadecimal

  • FireSight not NTP time synchronization

    Hi, we have configured the network small office for testing purposes. But there is a problem regarding. Here is the result of my managed device. Last login: 6 Oct 03:18:37 Mar 2015 192.168.0.49 Copyright 2001-2013, Sourcefire, Inc. All rights reserve