Change (@ManyToOne) to @OneToOne

hi;
i have 2 tables related by manytoone relation and it is ok; so i want to change this relation to onetoone relation so i just changed (@ManyToOne et @OneToMany) in two tables by (@OneToOne) by it didnt work.
my code is
@OneToMany(mappedBy="_house")
private Set<Student> _students; and te error is :
unknown mapped in ...... referenced by property unknown :java.util.set.house.
i think that type set is not compatible with onetoone relation; am i right? if yes how can i correct it ?
and thank you

I think you have to change Set<Student> to Student and it will work, because a one-to-one is a single object and not a collection.

Similar Messages

  • Lazy ManyToOne, setting weaving to static problem!

    Hello, I read in the manual that I need to change this property in the persistence.xml to static,
    so I could lazy ManyToOne and OneToOne, using "fetch = FetchType.LAZY". I did this:
    <property name="toplink.weaving" value = "static"/>But when I run the program I got stranges exceptions like this:
    Exception [TOPLINK-60] (Oracle TopLink Essentials - 2.0
    (Build b41-beta2 (03/30/2007))):
    oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: The method [_toplink_setcurso_vh]
    or [_toplink_getcurso_vh] is not defined in the object
    [entity.Aluno].
    Internal Exception: java.lang.NoSuchMethodException:
    entity.Aluno._toplink_getcurso_vh()
    Mapping:
    oracle.toplink.essentials.mappings.OneToOneMapping[curso]And this:
    java.lang.NullPointerException
         at oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.
    getMethodReturnType(PrivilegedAccessHelper.java:271)
         at oracle.toplink.essentials.internal.descriptors.MethodAttributeAccessor.
    getGetMethodReturnType(MethodAttributeAccessor.java:113)
         at oracle.toplink.essentials.mappings.ForeignReferenceMapping.
    validateBeforeInitialization(ForeignReferenceMapping.java:873)
         at oracle.toplink.essentials.descriptors.ClassDescriptor.
    validateBeforeInitialization(ClassDescriptor.java:3505)
         at oracle.toplink.essentials.descriptors.ClassDescriptor.
    preInitialize(ClassDescriptor.java:2198)
         at oracle.toplink.essentials.internal.sessions.
    DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:380)
         at oracle.toplink.essentials.internal.sessions.
    DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:360)
         at oracle.toplink.essentials.internal.sessions.
    DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:677)
         at oracle.toplink.essentials.internal.sessions.
    DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.
    EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)
         at oracle.toplink.essentials.internal.ejb.cmp3.
    EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:212)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.
    EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.
    EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:111)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.
    EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:105)
         at oracle.toplink.essentials.internal.ejb.cmp3.
    EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
         at test.Main.main(Main.java:23)When I remove the line:
    <property name="toplink.weaving" value = "static"/>Whitout this line in the persistence.xml, everything works fine, but the lazy ManyToOne does not work,
    it count as a FetchType.EAGER :/
    Here is the line where I use ManyToOne:
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name="curso_id", referencedColumnName="curso_id",
    insertable = false, updatable = false)
    Curso curso;
    public Curso getCurso() { return curso; }Someone could help me? Thanks!

    I tryied to made the static weaving using maven, I followed this tutorial:
    http://spatula.net/blog/labels/maven.html
    But nothing happens! It runs the ant tasks, but the ManyToOne continues as a eager fetch!
    Help!

  • Problem while inserting into a table which has ManyToOne relation

    Problem while inserting into a table *(Files)* which has ManyToOne relation with another table *(Folder)* involving a attribute both in primary key as well as in foreign key in JPA 1.0.
    Relevent Code
    Entities:
    public class Files implements Serializable {
    @EmbeddedId
    protected FilesPK filesPK;
    private String filename;
    @JoinColumns({
    @JoinColumn(name = "folder_id", referencedColumnName = "folder_id"),
    @JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)})
    @ManyToOne(optional = false)
    private Folders folders;
    public class FilesPK implements Serializable {
    private int fileId;
    private int uid;
    public class Folders implements Serializable {
    @EmbeddedId
    protected FoldersPK foldersPK;
    private String folderName;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "folders")
    private Collection<Files> filesCollection;
    @JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)
    @ManyToOne(optional = false)
    private Users users;
    public class FoldersPK implements Serializable {
    private int folderId;
    private int uid;
    public class Users implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer uid;
    private String username;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
    private Collection<Folders> foldersCollection;
    I left out @Basic & @Column annotations for sake of less code.
    EJB method
    public void insertFile(String fileName, int folderID, int uid){
    FilesPK pk = new FilesPK();
    pk.setUid(uid);
    Files file = new Files();
    file.setFilename(fileName);
    file.setFilesPK(pk);
    FoldersPK folderPk = new FoldersPK(folderID, uid);
         // My understanding that it should automatically handle folderId in files table,
    // but it is not…
    file.setFolders(em.find(Folders.class, folderPk));
    em.persist(file);
    It is giving error:
    Internal Exception: java.sql.SQLException: Field 'folderid' doesn't have a default value_
    Error Code: 1364
    Call: INSERT INTO files (filename, uid, fileid) VALUES (?, ?, ?)_
    _       bind => [hello.txt, 1, 0]_
    It is not even considering folderId while inserting into db.
    However it works fine when I add folderId variable in Files entity and changed insertFile like this:
    public void insertFile(String fileName, int folderID, int uid){
    FilesPK pk = new FilesPK();
    pk.setUid(uid);
    Files file = new Files();
    file.setFilename(fileName);
    file.setFilesPK(pk);
    file.setFolderId(folderId) // added line
    FoldersPK folderPk = new FoldersPK(folderID, uid);
    file.setFolders(em.find(Folders.class, folderPk));
    em.persist(file);
    My question is that is this behavior expected or it is a bug.
    Is it required to add "column_name" variable separately even when an entity has reference to ManyToOne mapping foreign Entity ?
    I used Mysql 5.1 for database, then generate entities using toplink, JPA 1.0, glassfish v2.1.
    I've also tested this using eclipselink and got same error.
    Please provide some pointers.
    Thanks

    Hello,
    What version of EclipseLink did you try? This looks like bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=280436 that was fixed in EclipseLink 2.0, so please try a later version.
    You can also try working around the problem by making both fields writable through the reference mapping.
    Best Regards,
    Chris

  • How to use Oracle partitioning with JPA @OneToOne reference?

    Hi!
    A little bit late in the project we have realized that we need to use Oracle partitioning both for performance and admin of the data. (Partitioning by range (month) and after a year we will move the oldest month of data to an archive db)
    We have an object model with an main/root entity "Trans" with @OneToMany and @OneToOne relationships.
    How do we use Oracle partitioning on the @OneToOne relationships?
    (We'd rather not change the model as we already have millions of rows in the db.)
    On the main entity "Trans" we use: partition by range (month) on a date column.
    And on all @OneToMany we use: partition by reference (as they have a primary-foreign key relationship).
    But for the @OneToOne key for the referenced object, the key is placed in the main/source object as the example below:
    @Entity
    public class Employee {
    @Id
    @Column(name="EMP_ID")
    private long id;
    @OneToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ADDRESS_ID")
    private Address address;
    EMPLOYEE (table)
    EMP_ID FIRSTNAME LASTNAME SALARY ADDRESS_ID
    1 Bob Way 50000 6
    2 Sarah Smith 60000 7
    ADDRESS (table)
    ADDRESS_ID STREET CITY PROVINCE COUNTRY P_CODE
    6 17 Bank St Ottawa ON Canada K2H7Z5
    7 22 Main St Toronto ON Canada     L5H2D5
    From the Oracle documentation: "Reference partitioning allows the partitioning of two tables related to one another by referential constraints. The partitioning key is resolved through an existing parent-child relationship, enforced by enabled and active primary key and foreign key constraints."
    How can we use "partition by reference" on @OneToOne relationsships or are there other solutions?
    Thanks for any advice.
    /Mats

    Crospost! How to use Oracle partitioning with JPA @OneToOne reference?

  • Problem with @OneToOne relationship in EJB 3.0

    Hi,
    I'm new to EJB 3.0. If i done any stupid thing please forgive me. Here is my doubt.
    I would like to use one-to-one relationship between two entities like USER and ADDRESS.
    I just did like this (the below code)to enable the relationship between these two entities.
    @Entity
    @Table(name="internalUser")
    public class InternalUser implements Serializable{
    .........//field entries of the User
    private Address userAddress;// Field for address entity.
    .......//setters and getters
    @OneToOne(cascade={CascadeType.ALL})
    @JoinColumn(name="id",table="user_address")
    public Address getUserAddress() {
    return userAddress;
    public void setUserAddress(Address userAddress) {
    this.userAddress = userAddress;
    } and Here is the Address EntityBean
    @Table(name="user_address")
    @Entity
    public class Address implements Serializable{
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    //setters and getters..
    }Entire Ejb application is deployed success fully. But when i try to add a User entry along with address, it is not able to save the address entry, but able to save the User entry correctly. And also it is not able to build a relationship with Address table.
    Here is my code which i write to save the User
    InternalUser user=new InternalUser();
    user.setName("Bharat");
    user.setSignnum("bhak");
    user.setDescription("Patel");
    Address address= new Address();
    address.setAreaCode("500032");
    address.setState("AP");
    address.setStreet("Prashanthi Nagar");
    user.setUserAddress(address);
    remote.saveUser(user); Here remote is SessionBeanInterface
    I'm using Postgres as a database.
    Please help me in this. What necessary steps need to follow in order to use @OneToOne relationship
    Edited by: chanti12345 on Apr 29, 2009 12:09 AM
    Edited by: chanti12345 on Apr 29, 2009 12:11 AM

    hi i solved this query.
    I made few changes in Both the entity classes. Here is the code for the Entites USER and ADDRESS
    @Entity
    @Table(name="internalUser")
    public class InternalUser implements Serializable{
    .......//field entries
    private Address userAddress;//address entry
    ......//setters and getters
    @OneToOne(cascade={CascadeType.ALL})
    public Address getUserAddress() {
         return userAddress;
    public void setUserAddress(Address userAddress) {
         this.userAddress = userAddress;
    @Table(name="user_address")
    @Entity
    public class Address implements Serializable{
    ....//fields and setters and getters
    }see the difference in the code . after making this change i'm able to save the User with relation ship with Address. No changes needed in client code.
    Thanks a lot to every one.
    Edited by: chanti12345 on Apr 29, 2009 2:22 AM

  • JPA: @ManyToOne legacy mapping using @JoinTable

    Dear JEE experts,
    I have a tough legacy mapping problem. There are two entities Pac and BasePac where each Pac has a BasePac field which is to be queried from the other entity table. The association is definied in a third table pac_component which has a Pac and a BasePac field among several others. I think the schema is a bit weird and I would have defined it differently, but I cannot change it because other applications using the database must not be changed.
    My code looks like this:
    @javax.persistence.Entity(name="Pacs")
    @javax.persistence.Table(name="packet")
    @javax.persistence.SequenceGenerator(name="PacsSeqGen", sequenceName="packet_packet_id_seq")
    public class Pac
         implements java.io.Serializable
        // virtual attribute basePac
        @javax.persistence.ManyToOne(fetch=EAGER, optional=true) // optional should be default anyway
        @javax.persistence.JoinTable(
             name="packet_component",
             [email protected](name="packet_id"),
             [email protected](name="basepacket_id") )
        private BasePac basePac;
        public BasePac getBasePac() { return basePac; }
        public void setBasePac( BasePac basePac ) { this.basePac = basePac; }
    @javax.persistence.Entity(name="BasePacs")
    @javax.persistence.Table(name="basepacket")
    @javax.persistence.SequenceGenerator(name="BasePacsSeqGen", sequenceName="basepacket_basepacket_id_seq")
    public class BasePac
         implements java.io.Serializable
    { ... }The Entity for pac_component does not appear so far and afaik it does not matter.
    When I now create a Pac instance and persist it, JPA (with Hibernate) always wants to create a link object:
    insert into pac_component (basepacket_id, packet_id) values (?, ?)Where the ? for basepacket_id is null. But this is not a valid row for pac_component, thus I will get a ConstaintViolationException.
    My question is: Why does it create this row at all? The association is marked optional!
    My solution might be to make the field PacBase within Pac transient and access it only through a pacComponents field, which is a @OneToMany but every assiciated PacComponent entity refers to the same BasePac. Anyway, I wonder why JPA or Hibernate wants to create such a row at all.
    ... MIchael

    I wouldn't focus too much on wanting to solve this through JPA. What you have here is a 'problem' which you will run into in many forms - your business requirements do not map directly to the data layer. This simply means that you need some business logic to make the translation. For example if this were for a web layer I would implement a specialized bean which can take different entities and then provide an alternative view on the data, optionally by generating it.
    If 'calculated' data is closely tied to the database layer and less to the business layer then you could of course choose to fix it through the database itself - by creating a view and mapping an entity to that. That is especially useful if you need the same data in multiple aspects of the application framework and not only in the Java code (think of reporting and analysis for example), but it has other considerations like performance.

  • Onetomany manytoone bidrectional mapping

    How do I accomplish this;
    Here is my code. I have both a onetoone where 1 telephone number is mandatory for 1 customer.
    But the customer can have many telephone numbers other than the mandatory one.
    Customer.java
    package testonetoone;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import java.util.ArrayList;
    import java.util.Collection;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.FetchType;
    import javax.persistence.GeneratedValue;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    import javax.persistence.OneToOne;
    import javax.persistence.SequenceGenerator;
    @Entity
    @NamedQueries( { @NamedQuery(name = "Customer.findAll", query = "select o from Customer o") })
    public class Customer implements Serializable {
    @Id
    @Column(name = "CUSTOMER_ID", nullable = false)
    @GeneratedValue(generator = "CustomerSeq")
    @SequenceGenerator(name = "CustomerSeq", sequenceName = "ISATS.CUSTOMER_SEQ", allocationSize = 1)
    private BigDecimal customerId;
    @Column(name = "CUSTOMER_NAME", length = 20)
    private String customerName;
    // @Column(name="PHONES_ID", nullable = false)
    // private String phonesId;
    @OneToOne(optional = false, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
    @JoinColumn(name = "PHONES_ID", unique = true, nullable = false, updatable = false)
    private Phones telephoneNumber;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "customerTelephones", orphanRemoval = true, fetch = FetchType.EAGER)
    // @JoinColumn(name = "PHONES_ID", unique = true, nullable = false, updatable = false)
    private Collection<Phones> telephoneNumbersList = new ArrayList<Phones>();
    public Customer() {
    public BigDecimal getCustomerId() {
    return customerId;
    public void setCustomerId(BigDecimal customerId) {
    this.customerId = customerId;
    public String getCustomerName() {
    return customerName;
    public void setCustomerName(String customerName) {
    this.customerName = customerName;
    public void setTelephoneNumber(Phones telephoneNumber) {
    this.telephoneNumber = telephoneNumber;
    public Phones getTelephoneNumber() {
    return telephoneNumber;
    public void setTelephoneNumbersList(Collection<Phones> telephoneNumbersList) {
    this.telephoneNumbersList = telephoneNumbersList;
    public Collection<Phones> getTelephoneNumbersList() {
    return telephoneNumbersList;
    Phones.java
    package testonetoone;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.FetchType;
    import javax.persistence.GeneratedValue;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToOne;
    import javax.persistence.SequenceGenerator;
    @Entity
    @NamedQueries( { @NamedQuery(name = "Phones.findAll", query = "select o from Phones o") })
    public class Phones implements Serializable {
    // @Column(name = "CUSTOMER_ID")
    // private BigDecimal customerId;
    @Id
    @Column(name = "PHONES_ID", nullable = false)
    @GeneratedValue(generator = "PhonesSeq")
    @SequenceGenerator(name = "PhonesSeq", sequenceName = "ISATS.PHONES_SEQ", allocationSize = 1)
    private BigDecimal phonesId;
    @Column(name = "PHONE_NUMBER", length = 20)
    private String phoneNumber;
    @OneToOne(optional = false, cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "telephoneNumber")
    // @JoinColumn(name = "CUSTOMER_ID", unique = true, nullable = false, insertable = false, updatable = false)
    private Customer customer;
    @ManyToOne(optional = false,cascade = CascadeType.ALL, fetch = FetchType.EAGER)
    @JoinColumn(name = "CUSTOMER_ID", nullable = false)
    private Customer customerTelephones;
    public Phones() {
    // public BigDecimal getCustomerId() {
    // return customerId;
    // public void setCustomerId(BigDecimal customerId) {
    // this.customerId = customerId;
    public BigDecimal getPhonesId() {
    return phonesId;
    public void setPhonesId(BigDecimal phonesId) {
    this.phonesId = phonesId;
    public String getPhoneNumber() {
    return phoneNumber;
    public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
    public void setCustomer(Customer customer) {
    this.customer = customer;
    // @JoinColumn(name = "CUSTOMER_ID", unique = true, nullable = false, insertable = false, updatable = false)
    public Customer getCustomer() {
    return customer;
    public void setCustomerTelephones(Customer customerTelephones) {
    this.customerTelephones = customerTelephones;
    public Customer getCustomerTelephones() {
    return customerTelephones;
    testonetoone.java
    package testonetoone;
    import java.util.ArrayList;
    import java.util.List;
    import javax.persistence.EntityManager;
    import javax.persistence.Persistence;
    public class TestOneToOne {
    public TestOneToOne() {
    super();
    public static void main(String[] args) {
    TestOneToOne testOneToOne = new TestOneToOne();
    EntityManager em = null;
    em = Persistence.createEntityManagerFactory("TestOneToOne", new java.util.HashMap()).createEntityManager();
    // 1) Create customer, create phones, set add mapping
    // EntityManager em = emf.createEntityManager();
    Phones p = new Phones();
    p.setPhoneNumber("5716120001");
    Customer c = new Customer();
    c.setCustomerName("Toyota");
    p.setCustomer(c);
    c.setTelephoneNumber(p);
    Phones p2 = new Phones();
    p2.setPhoneNumber("5716120002");
    List<Phones> telephoneNumbersList = new ArrayList<Phones>();
    telephoneNumbersList.add(p2);
    p2.setCustomer(c);
    c.setTelephoneNumbersList(telephoneNumbersList);
    // Query query = em.createQuery("SELECT e FROM CUSTOMER e");
    // List<Customer> list = (List<Customer>) query.getResultList();
    // System.out.println(list);
    // query= em.createQuery("SELECT d FROM PHONES d");
    // List<Phones> dlist = (List<Phones>) query.getResultList();
    // System.out.println(dlist);
    try {
    em.getTransaction().begin();
    em.persist(c);
    em.flush();
    em.getTransaction().commit();
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    em.close();
    }

    This is not a bidirectional relationship (well, the OneToMany and ManyToOne form one), it is a circular reference. I am not sure how you can possibly do this in the database without making one of the foreign key fields nullable, or delaying constraint checking until the transaction completes.
    Which ever relationship you make nullable will have to be set after the persist calls are flushed to the database. If you are able to delay constraint checking in the database, this isn't neccessary.
    Best Regards,
    Chris

  • Querying tables mapped by oneToMany, manyToOne

    Hi,
    I have two classes, customers and customerinfo, both mapped to a database. There is a cust_id field in customers which is a primary key and a cust_id field in customerinfo which is a foreign key referencing the cust_id in customers.
    Relevant code in each class is as follows:
    Customers Class:
    @Id
    @Column(name = "cust_id", nullable = false)
    private Integer custId;
    @Column(name = "code", nullable = false)
    private String code;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "custId")
    private java.util.List <NewDBTest.Persistence.CustomerInfo> customerInfoList;
    public Integer getCustId() {
    return this.custId;
    public void setCustId(Integer custId) {
    this.custId = custId;
    public java.util.List <NewDBTest.Persistence.CustomerInfo> getCustomerInfoList() {
    return this.customerInfoList;
    public void setCustomerInfoList(java.util.List <NewDBTest.Persistence.CustomerInfo> customerInfoList) {
    this.customerInfoList = customerInfoList;
    etc ....
    CustomerInfo Class:
    @Column(name = "FullName")
    private String fullName;
    @JoinColumn(name = "cust_id", referencedColumnName = "cust_id")
    @ManyToOne
    private Customers custId;
    etc....
    I create a query as follows and get back an instance of the Customers class
    List<Customers> cust = em.createQuery("select c from Customers c where c.custId = :custId").setParameter("custId", 1).getResultList();
    Then calling the following method returns a list of every row in customerinfo where customer.cust_id=customerinfo.cust_id as expected
    List <CustomersInfo> custInfo = cust.get(0).getCustomersInfoList();
    So what i want to know is, is there a way of changing the default select statement that is used when calling getCustomersInfoList() to receive a subset of the rows based on values of other fields in customerinfo?
    apologies for the length of the post

    Hi,
    the customerinfo table contains a timestamped record for each update to the table so would contain multiple entries for the one customer. What i was looking to do was to retrieve just the relevant instance from customerinfo using the available methods without having to rewrite the sql statements (ie by passing a date and time into the method and getting back the most recent entry that would have existed at that time). I was hoping there might have been a way of altering the criteria used by editing the tags or something similar
    Is there a way of retrieving the statement that calling getCustomersInfoList() in this example uses?
    It looks like regular jpql might be the way to go

  • ManyToOne Cascade

    Hi,
    I have the objects A and B. A has ManyToOne relation with B. I want to have a "no cascade" relation between these two. I am using JPA of Kodo. The annotation is defined as below (as you see with no cascade type).
    Class A
    @ManyToOne
    @JoinColumn(name="FLD_A_REF")
    getB()
    When persisting/merging an object A, with a reference to an already managed/attached B object, I expect that the reference from A to B is written to DB, and no change occurs in B object.
    However, when trying to persist/merge an A object with a reference to (attached or deattached, doesnt matter) B object, it gives an exception "Encountered new object B-... in persistent field A.b of managed object A@.. However this field does not allow cascade attach. You cannot a reference to a new object without cascading."
    I couldnt execute such sequences in KODO.
    I will appreciate your help.
    Thanks in advance.
    Siyamed

    You are right, calling entityManager.flush() between the a.removeB(b) and entityManager.remove(c) did the trick. While this is better than removing the NOT NULL constraints on the table, I would like to know if another solution is possible: this solution requires that my domain service be aware of the EntityManager, while I would prefer it to be only aware of other domain objects such as repositories.
    Cheers!

  • Cannot persist detached object with @ManyToOne

    I have a simple table that holds named relationships between 2 objects. I am using a @ManyToOne type from the relationship object to each of the parent and child objects.
    If the parent and child have NOT already been persisted everything works fine. However if either of them have been previously persisted I fail with a "Cannot persist detached object" error. Why is this, and what is the resolution?
    Through much trial and error I was never able to get em.merge to resolve the issue. However I did implement a @PrePersist and registered both parent and child in the UnitOfWork and this did make the problem go away. This 'hack' however cannot be the right solution since its not portable in any fashion across other ORM providers.
    It's seems as though the Cascade.PERSIST should handle the fact that the objects have already been persisted?
    The following is the relationship class:
    @Entity
    @Table(name="UDM_RELATIONS")
    public class UdmRelationship extends UdmPersistentObject
    * If the parent has not be saved then let the persist of this object take care of it.
    * Don't touch the parent if this relationship is removed.
    @ManyToOne(cascade=CascadeType.PERSIST)
    @JoinColumn(name="PARENT_ID")
    protected UdmPersistentObject parent = null;
    * If the child has not be saved then let the persist of this object take care of it.
    * Don't touch the parent if this relationship is removed.
    @ManyToOne(cascade=CascadeType.PERSIST)
    @JoinColumn(name="CHILD_ID")
    protected UdmPersistentObject child = null;
    * Name the relationship for easier querying and viewing of direct table data.
    @Column(name="REL_NAME")
    protected String relationshipName = null;
    // Initialization
    public UdmRelationship(String relationshipName)
    this.relationshipName = relationshipName;
    public UdmRelationship()
    Annotation annotation = this.getClass().getAnnotation(DiscriminatorValue.class);
    if ( annotation != null )
    DiscriminatorValue dv = (DiscriminatorValue) annotation;
    this.relationshipName = dv.value();
    // Data Management
    @XmlAttribute(name="type")
    protected String getRelationshipName() { return this.relationshipName; }
    @XmlTransient
    protected UdmPersistentObject getParent() { return this.parent; }
    protected void setParent(UdmPersistentObject parent) { this.parent = parent; }
    @XmlTransient
    protected UdmPersistentObject getChild() { return this.child; }
    protected void setChild(UdmPersistentObject child) { this.child = child; }
    @PrePersist
    public void merge()
    Server server = (Server) SessionManager.getManager().getSession("udm-tests");
    Session session = (Session)server.getActiveSession();
    session.acquireUnitOfWork().registerObject(this.parent);
    session.acquireUnitOfWork().registerObject(this.child);
    The following is the error:
    junit.framework.AssertionFailedError: Unable to create Personal Contact: [Persistent Object [com.riscs.tools.data.udm.support.PersonalContact] save failed.; nested exception is javax.persistence.EntityExistsException:
    Exception Description: Cannot persist detached object [com.riscs.tools.data.udm.support.Person@1f47ae8].
    Class> com.riscs.tools.data.udm.support.Person Primary Key> [403]]

    Hello,
    I wasn't clear. Merge is used on unmanaged objects to 'merge' the changes into the managed object. If the object is new, it will return a managed copy of the object. The only difference between merge and persist when passed in a new object, is that persist makes the passed in object managed, where as merge returns a managed copy - the object passed in remains unmanaged.
    As for it being a no-op - it takes a unmanaged copy of an object and returns the managed copy. It will take any changes and merge them into the managed copy, which as you said, is a no-op if there aren't changes. But your object model must have changes - you set a parent-child bidirectional relationship. Also, merge will cascade over the tree. So if you call it on your parent, and you have added a new child in say a 1:M mapping, it will persist the child - if you have the relation set to cascade merge+persist.
    What are the problems you run into with merge?
    As for find - depending on your options, it will hit the cache. The point is that the spec requires you to only reference managed objects. I believe this is to allow the cache to maintain object identity - it would cause problems if you read back the newly persisted child and its referenced parent was unmanaged. Any changes to the parent (such as adding the child to its collection) also need to be managed, so the only way to do that is on a managed copy -either by first using find and then making the changes or by merging the changes made to a detached copy.
    Best Regards,
    Chris

  • Having purchased onetoone, i cannot book it,keeps saying invalid password

    I have recently purchased the apple mac pro. At the same time I purchased the onetoone voucher which I was told I could book on line. Once home, I went onto the website to make arrangements,but found that I couldn't.It keeps saying invalid password. I have even changed my password,logged out and then logged back in to do it, but it still says the same. I am totally frustrated. I rang the apple store but was just put through to some automated service. After 25 minutes in a queue, I gave up. I wanted to save myself another trip to th Apple store, just to book the onetime. Can anyone advise me.....what am I doing wrong???

    You probably need to call Apple directly in the morning.  They can help you with a password reset issue.

  • Manytoone lazy issue

    Hi all,
    I have problems with manytoone mappings with fetchtype set to lazy. When the mappings are set to eager, everything works great.
    My situation is: I want to improve the performance of entities load from server (Glassfish v2.1.1), so I' ve set some mappings to lazy (don't need them on client). When the entity is saved (from client), i wish to set the lazy relationships with correct entities on server side. But when I call entity.setAnotherEntity(anotherEntity) an NullPointerException is thrown. When I've debugged the server side (using Netbeans 6.7.1), I've found out, that the setter setAnotherEntity is not on the top of stack trace(it's on second place), on the top is something like toplinksetanotherentity. I my entity has been added fields with names toplinkfieldname_vh. On the net I've found, that there is something wrong with weaving. Can anybody help me? I'm new in Java EE.
    Thank you

    Thank you for answer.
    I'm trying to improve the response time from server. Some entities have "large" related entities in manytoone relationship, which are not needed on client side, so I don't want to load them to the client. But when I save the entities, I need to keep this relations or sometimes to change them - it depends on information on server side. Yes, it can be handled from client - load the whole entity with related entites, but there is sometimes unacceptable delay. Then I set the manytoone relation to lazy, merge fails with oracle.toplink.essentials.exceptions.DescriptorException.
    Caused by: Exception [TOPLINK-99] (Oracle TopLink Essentials - 2.1 (Build b31g-fcs (10/19/2009))): oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: The method [_toplink_getanotherentity_vh] on the object [entity] triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[anotherentity]
    Can you advice me a solution for this situation?

  • SAP-JPA changes version of unchanged entities

    Hi all:
    We are having a problem with an application that we developed using Sap NetWeaver 7.1 . We are having optimisticlock exception in some of the transactions that we have in the application, checking this situation we found that SAP-JPA is updating the version field for entities that we haven't change. Why is this happening?

    Hi Adrian:
    I'm sending the following:
    1. The ejb's method that we are using to execute the query.
    2. The query.
    3. The entities that are part of the query, if you need I can send you the related entities.
    This is the method that we are calling from webDynpro.
    @TransactionAttribute(value=TransactionAttributeType.NOT_SUPPORTED)
    public List<Object> buscarOrdenesFabricacion(String codigoLote){
         ArrayList<Object> listaParametros = new ArrayList<Object>();
         listaParametros.add(codigoLote);
         Parametro parametro = new Parametro();
         parametro.setParametros(listaParametros);
              //parametro = null;
         List<Object> ordenFabricacion = (List<Object>)servicioCrud.findNamedQuery("OrdenFab.buscarPor_Lote_tipoSemi", parametro);
         if(ordenFabricacion.size() == 0){
              return null;               
         return ordenFabricacion;
    This method is from an EJB that we use to handle all the DB interaction (DAO)
    @TransactionAttribute(value=TransactionAttributeType.NOT_SUPPORTED)
    public List findNamedQuery(String namedQuery, Parametro parametro) {
         super.setEntityManager(this.entityManager);
         return super.findNamedQuery(namedQuery, parametro);
    In this EJB we are intantiating the entityManager in this way
    @PersistenceContext(unitName="devCrystal~0~entidades~crystal.com.co")
    protected EntityManager entityManager;
    @Resource(name="ORDENES")
    protected javax.sql.DataSource dataSource;
    We are handling the transaction by BEAN.
    This is the parent class for the above EJB.
    @TransactionAttribute(value=TransactionAttributeType.NOT_SUPPORTED)
    public List findNamedQuery(String namedQuery, Parametro parametro) {
         List retorno = null;
         Query query = this.entityManager.createNamedQuery(namedQuery).setFlushMode(FlushModeType.COMMIT);
         setParametros(query, parametro);
         retorno = query.getResultList();
         return retorno;
    protected Query setParametros(Query query, Parametro parametro) {
         if (parametro != null) {
              List<Object> listaParametros = parametro.getParametros();
              if (parametro != null && listaParametros != null) {
                   for (int i = 1; i <= listaParametros.size(); i++) {
                        query.setParameter(i, listaParametros.get(i - 1));
         return query;
    QUERY
    <named-native-query  name="OrdenFab.buscarPor_Lote_tipoSemi" result-class="co.com.crystal.entidades.produccion.OrdenFabricacion">
    <query><![CDATA[ SELECT of.*
    FROM tb_ordenfabricacion of
    WHERE of.co_ordenfabricacion IN
    (SELECT DISTINCT tb_operacionlote.co_ordenfabricacion
    FROM tb_operacionlote
    WHERE tb_operacionlote.fh_terminacion IS NULL AND tb_operacionlote.co_lote = ?)]]>
    </query>
    </named-native-query >
    Entities
    package co.com.crystal.entidades.produccion;
    import java.io.Serializable;
    import java.sql.Timestamp;
    import java.util.List;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.Table;
    import javax.persistence.Temporal;
    import javax.persistence.TemporalType;
    import javax.persistence.Transient;
    import javax.persistence.Version;
    @Entity
    @Table(name="TB_ORDENFABRICACION")
    public class OrdenFabricacion implements Serializable {
         @Id
         @Column(name="CO_ORDENFABRICACION")
         private String coOrdenfabricacion;
         @Column(name="FH_ACTUALIZACION")
         @Temporal(TemporalType.TIMESTAMP)     
         private Timestamp fhActualizacion;
         @Column(name="CA_PROGRAMADA")
         private Double caProgramada;
         @Version
         private int version;
         @Column(name="SW_SUMINISTROILIMITADO", nullable = true)
         private String swSuministroilimitado;
         @Column(name="CO_USUARIO")
         private String coUsuario;
         @Column(name="FH_CREACION")
         @Temporal(TemporalType.TIMESTAMP)     
         private Timestamp fhCreacion;
         @Column(name="VL_PORCENTAJEEXCESO", nullable = true)
         private Double vlPorcentajeexceso;
         @ManyToOne     
         @JoinColumn(name="CO_TIPOSEMIELABORADO", nullable = true)
         private TipoSemiElaborado coTiposemielaborado;
         @ManyToOne     
         @JoinColumn(name="CO_CENTRO")
         private Centro coCentro;
         @ManyToOne
         @JoinColumn(name="CO_CATEGORIA", nullable = true)
         private Categoria coCategoria;
         @ManyToOne
         @JoinColumn(name="CO_CLASEORDEN")
         private ClaseOrden coClaseorden;
         @ManyToOne
         @JoinColumn(name="CO_MATERIAL")
         private Material coMaterial;
         @ManyToOne
         @JoinColumn(name="CO_TALLA")
         private Talla coTalla;
         @ManyToOne
         @JoinColumn(name="CO_COLOR")
         private Color coColor;
    /*     //@OneToMany(mappedBy="coOrdenfabricacion", fetch=FetchType.LAZY)
         @Transient
         private List<OperacionLote> tbOperacionLoteCollection;
         @OneToMany(mappedBy="coOrdenfabricacion", fetch=FetchType.LAZY)
         private List<OperacionOrden> tbOperacionordenCollection;
         @OneToMany(mappedBy="coOrdenfabricacion")
         private Set<OrdenPrevFab> tbOrdenprevfabCollection;
         @OneToMany(mappedBy="coOrdenfabricacion")
         private Set<OrdenPrevFab> tbOrdenprevfabCollection;
         private static final long serialVersionUID = 1L;
         public OrdenFabricacion() {
              super();
         public String getCoOrdenfabricacion() {
              return this.coOrdenfabricacion;
         public void setCoOrdenfabricacion(String coOrdenfabricacion) {
              this.coOrdenfabricacion = coOrdenfabricacion;
         public Timestamp getFhActualizacion() {
              return this.fhActualizacion;
         public void setFhActualizacion(Timestamp fhActualizacion) {
              this.fhActualizacion = fhActualizacion;
         public Double getCaProgramada() {
              return this.caProgramada;
         public void setCaProgramada(Double caProgramada) {
              this.caProgramada = caProgramada;
         public Centro getCoCentro() {
              return this.coCentro;
         public void setCoCentro(Centro coCentro) {
              this.coCentro = coCentro;
         public int getVersion() {
              return this.version;
         public void setVersion(int version) {
              this.version = version;
         public String getSwSuministroilimitado() {
              return this.swSuministroilimitado;
         public void setSwSuministroilimitado(String swSuministroilimitado) {
              this.swSuministroilimitado = swSuministroilimitado;
         public String getCoUsuario() {
              return this.coUsuario;
         public void setCoUsuario(String coUsuario) {
              this.coUsuario = coUsuario;
         public TipoSemiElaborado getCoTiposemielaborado() {
              return this.coTiposemielaborado;
         public void setCoTiposemielaborado(TipoSemiElaborado coTiposemielaborado) {
              this.coTiposemielaborado = coTiposemielaborado;
         public Timestamp getFhCreacion() {
              return this.fhCreacion;
         public void setFhCreacion(Timestamp fhCreacion) {
              this.fhCreacion = fhCreacion;
         public Double getVlPorcentajeexceso() {
              return this.vlPorcentajeexceso;
         public void setVlPorcentajeexceso(Double vlPorcentajeexceso) {
              this.vlPorcentajeexceso = vlPorcentajeexceso;
         public Categoria getCoCategoria() {
              return this.coCategoria;
         public void setCoCategoria(Categoria coCategoria) {
              this.coCategoria = coCategoria;
         public ClaseOrden getCoClaseorden() {
              return this.coClaseorden;
         public void setCoClaseorden(ClaseOrden coClaseorden) {
              this.coClaseorden = coClaseorden;
         public Material getCoMaterial() {
              return this.coMaterial;
         public void setCoMaterial(Material coMaterial) {
              this.coMaterial = coMaterial;
         public Talla getCoTalla() {
              return this.coTalla;
         public void setCoTalla(Talla coTalla) {
              this.coTalla = coTalla;
         public Color getCoColor() {
              return this.coColor;
         public void setCoColor(Color coColor) {
              this.coColor = coColor;
         public List<OperacionOrden> getTbOperacionordenCollection() {
              return this.tbOperacionordenCollection;
         public void setTbOperacionordenCollection(List<OperacionOrden> tbOperacionordenCollection) {
              this.tbOperacionordenCollection = tbOperacionordenCollection;
         public Set<Lote> getTbLoteCollection() {
              return tbLoteCollection;
         public void setTbLoteCollection(Set<Lote> tbLoteCollection) {
              this.tbLoteCollection = tbLoteCollection;
         public Set<OrdenPrevFab> getTbOrdenprevfabCollection() {
              return this.tbOrdenprevfabCollection;
         public void setTbOrdenprevfabCollection(Set<OrdenPrevFab> tbOrdenprevfabCollection) {
              this.tbOrdenprevfabCollection = tbOrdenprevfabCollection;
              public Set<TbOrdenprevfab> getTbOrdenprevfabCollection() {
              return this.tbOrdenprevfabCollection;
         public void setTbOrdenprevfabCollection(Set<TbOrdenprevfab> tbOrdenprevfabCollection) {
              this.tbOrdenprevfabCollection = tbOrdenprevfabCollection;
         public List<OperacionLote> getTbLoteCollection() {
              return tbOperacionLoteCollection;
         public void setTbLoteCollection(List<OperacionLote> tbLoteCollection) {
              this.tbOperacionLoteCollection = tbLoteCollection;
    package co.com.crystal.entidades.produccion;
    import java.io.Serializable;
    import java.sql.Timestamp;
    import javax.persistence.Column;
    import javax.persistence.Embeddable;
    import javax.persistence.EmbeddedId;
    import javax.persistence.Entity;
    import javax.persistence.JoinColumn;
    import javax.persistence.JoinColumns;
    import javax.persistence.ManyToOne;
    import javax.persistence.Table;
    import javax.persistence.Temporal;
    import javax.persistence.TemporalType;
    import javax.persistence.Version;
    @Entity
    @Table(name="TB_OPERACIONLOTE")
    public class OperacionLote implements Serializable {
         @EmbeddedId
         private OperacionLote.PK pk;
         @Column(name="CA_PRIMERAS")
         private Integer caPrimeras;
         @Column(name="FH_TERMINACION")
         @Temporal(TemporalType.TIMESTAMP)     
         private Timestamp fhTerminacion;
         @Column(name="FH_INICIO")
         @Temporal(TemporalType.TIMESTAMP)     
         private Timestamp fhInicio;
         @Column(name="FH_ACTUALIZACION")
         @Temporal(TemporalType.TIMESTAMP)     
         private Timestamp fhActualizacion;
         @Column(name="FH_CREACION")
         @Temporal(TemporalType.TIMESTAMP)     
         private Timestamp fhCreacion;
         @Version
         private int version;
         @Column(name="CO_USUARIO")
         private String coUsuario;
         @Column(name="CA_TEORICA")
         private Double caTeorica;
         @Column(name="CA_TEORICAPLC")
         private Double caTeoricaplc;
         @ManyToOne
         @JoinColumn(name="CS_MAQUINA")
         private Maquina csMaquina;
         @Column(name="CO_MAQUINA")
         private String coMaquina;
         @ManyToOne
         @JoinColumns({
              @JoinColumn(name="CO_ORDENFABRICACION", referencedColumnName="CO_ORDENFABRICACION", insertable=false, updatable=false),          
              @JoinColumn(name="CO_LOTE", referencedColumnName="CO_LOTE", insertable=false, updatable=false)
         private Lote tbLote;
         @ManyToOne
         @JoinColumns({
              @JoinColumn(name="CO_ORDENFABRICACION", referencedColumnName="CO_ORDENFABRICACION", insertable=false, updatable=false),          
              @JoinColumn(name="CS_OPERACION", referencedColumnName="CS_OPERACION", insertable=false, updatable=false)
         private OperacionOrden tbOperacionOrden;     
         private static final long serialVersionUID = 1L;
         public OperacionLote() {
              super();
         public OperacionLote.PK getPk() {
              return this.pk;
         public void setPk(OperacionLote.PK pk) {
              this.pk = pk;
         public Integer getCaPrimeras() {
              return this.caPrimeras;
         public void setCaPrimeras(Integer caPrimeras) {
              this.caPrimeras = caPrimeras;
         public Timestamp getFhTerminacion() {
              return this.fhTerminacion;
         public void setFhTerminacion(Timestamp fhTerminacion) {
              this.fhTerminacion = fhTerminacion;
         public Timestamp getFhInicio() {
              return this.fhInicio;
         public void setFhInicio(Timestamp fhInicio) {
              this.fhInicio = fhInicio;
         public Timestamp getFhActualizacion() {
              return this.fhActualizacion;
         public void setFhActualizacion(Timestamp fhActualizacion) {
              this.fhActualizacion = fhActualizacion;
         public Timestamp getFhCreacion() {
              return this.fhCreacion;
         public void setFhCreacion(Timestamp fhCreacion) {
              this.fhCreacion = fhCreacion;
         public int getVersion() {
              return this.version;
         public void setVersion(int version) {
              this.version = version;
         public String getCoUsuario() {
              return this.coUsuario;
         public void setCoUsuario(String coUsuario) {
              this.coUsuario = coUsuario;
         public Double getCaTeorica() {
              return this.caTeorica;
         public void setCaTeorica(Double caTeorica) {
              this.caTeorica = caTeorica;
         public Double getCaTeoricaplc() {
              return this.caTeoricaplc;
         public void setCaTeoricaplc(Double caTeoricaplc) {
              this.caTeoricaplc = caTeoricaplc;
         @Embeddable
         public static class PK implements Serializable {
              @Column(name="CO_ORDENFABRICACION")
              private String coOrdenfabricacion;          
              @Column(name="CO_LOTE")
              private String coLote;
              @Column(name="CS_OPERACION")
              private String csOperacion;
              private static final long serialVersionUID = 1L;
              public PK() {
                   super();
              public String getCoLote() {
                   return this.coLote;
              public void setCoLote(String coLote) {
                   this.coLote = coLote;
              public String getCsOperacion() {
                   return this.csOperacion;
              public void setCsOperacion(String csOperacion) {
                   this.csOperacion = csOperacion;
              public String getCoOrdenfabricacion() {
                   return this.coOrdenfabricacion;
              public void setCoOrdenfabricacion(String coOrdenfabricacion) {
                   this.coOrdenfabricacion = coOrdenfabricacion;
              @Override
              public boolean equals(Object o) {
                   if (o == this) {
                        return true;
                   if ( ! (o instanceof PK)) {
                        return false;
                   PK other = (PK) o;
                   return this.coLote.equals(other.coLote)
                        && this.csOperacion.equals(other.csOperacion)
                        && this.coOrdenfabricacion.equals(other.coOrdenfabricacion);
              @Override
              public int hashCode() {
                   return this.coLote.hashCode()
                        ^ this.csOperacion.hashCode()
                        ^ this.coOrdenfabricacion.hashCode();
         public Lote getTbLote() {
              return tbLote;
         public void setTbLote(Lote tbLote) {
              this.tbLote = tbLote;
         public OperacionOrden getTbOperacionOrden() {
              return tbOperacionOrden;
         public void setTbOperacionOrden(OperacionOrden tbOperacionOrden) {
              this.tbOperacionOrden = tbOperacionOrden;
         public Maquina getCsMaquina() {
              return csMaquina;
         public void setCsMaquina(Maquina csMaquina) {
              this.csMaquina = csMaquina;
         public String getCoMaquina() {
              return coMaquina;
         public void setCoMaquina(String coMaquina) {
              this.coMaquina = coMaquina;
    If you need i can send you also the database traces where you can see the selects and updates over the tables.
    I hope that you can help us with this, we are in a huge problem because of this behavior.
    Best regards,
    Jose Arango.

  • BADI for changing fields during Creation of BP in CRM

    Hello to everyone,
      I need to find a BADI (or other way) to default several fields during BP creation in CRM (4.0 SR1 SP9). The fields I will like to set are TAX TYPE, TAX NUMBER, TAX CATEGORY, etc.. I have found the BADI BUPA_TAX_UPDATE but i dont see any suitable parameters (structures) to changes these fields. Please advice and thanks in advance.

    Hi
    If you use function BUPA_NUMBERS_GET then your BP number will already be buffered and you can avoid a DB read. It may also be that the BP is not in the DB yet anyway.
    You can only pass one GUID in at a time - loop through IT_CHANGED_INSTANCES into a variable of type BU_PARTNER_GUID and pass that into the function as input parameter IV_PARTNER_GUID.
    Cheers
    Dom

  • How to restrict manual changing of free goods in sales order

    Hi ,
    Goodmorning ,
    We have some requirement : In sales order free goods quantity determination by system  should not be allowed to change manually , where can we do this ?
    Looking for your inputs
    Thanks and regards
    Venkat

    As per SAP Standard, when the main Item quantity is changed, the Free Goods are redetermined. In this case any manual changes to Free Goods Quantities are lost.
    But your requirement is for restricting the Chages of the Quantity of Free Goods Correct?
    I believe there is no SAP standard solution for this. You will have to apply a User Exit, which will check the Item category of each LIne item & if it is free goods (TANN) then changes are not permitted.
    Hope this helps.
    Thanks,
    Jignesh Mehta

Maybe you are looking for

  • Is there a way to open multiple files at once with the new download manager?

    It was possible to do this with the old one by right-clicking and selecting "open", but I haven't been able to find a way to make it work with the new one.

  • The SAP Instance JC00 fails to start on aIX box

    Hi, I am installing SAP Netweaver on AIX box. The instalaltion process fails at the phase 33 of 34 the SAP Instance JC00 fails to start if i chek the error fiel Trace of system startup/check of SAP System DON on Tue Dec 26 16:00:51 CST 2006 Called co

  • Sony HDR-HC3 no longer works in iMovie 08 under Leopard

    Hello all, Prior to my upgrade from 10.4 to 10.5, I had been using iMovie to import from my Sony HDR-HC3 mini DV camera without any difficulty - building a library of video from my rehearsals so that I can prepare doctoral audition DVDs. Now, since u

  • AD RMS 2008R2 - Export not getting disabled

    Hi, We've setup AD RMS in our environment. We use Office 2010 as IRM clients. Everything is working fine apart from one thing.  I need to give users permission to edit and save and excel document but not Save As. I created a template for this and whe

  • RSS feed INTO iweb account

    I can't use the blog in iWeb because I live at school and the IT department has a firewall up all over campus. So I use livejournal instead. I'm wondering if there is a way to feed my livejournal into my iWeb, or at least have a link at the top that