Why object M_MATE_NEU?
Hi together
In different Retail systems we have (now) the object M_MATE_NEU which is used o.e. in transaction mm41.
Until now we inserted the object in the roles whit mm41 because is needed to create new products, etc...
But in my opinion this object is not necessary because you can control the creation with M_MATE_MAR or M_MATE_MAT.
There you can use the ACTVT to control the authorization (01, 02, 03).
I would like to deactivate the object in the SU24 for the transactions MM41, etc.
Has anyone had experience with M_MATE_NEU?
Thank you
Best Regards
Tobias
Hi Colleen
Right, in this object ist only field DUMMY with *
MM01 requires M_MATE_STA, MM41 requires M_MATE_NEU
But why this check for M_MATE_NEU.
Now i have to update all roles with MM41 with this "new" object, that the transaction can be started.
Check to create new material number is in M_MATE_MAR oder M_MATE_MAT
-> Has anyone deactivated the M_MATE_NEU for MM41?
-> Why this check for start the transaction?
Thanks and regards
Tobias
Similar Messages
-
Why Object is a super class in java?
hi all i have got one basic doubt in java. why Object class is a super class in java. C++ is also a object oriented language but there there is no concept of making object as a super class, but in java why we are having that. thanks
Personally, I find the fact that C++ (and Delphi) DOES NOT have a common base class something of an inconvenience at times. The reason is that Java is an (almost) pure Object Oriented language, while C++ and Delphi are partially-object-oriented additions to C and Pascal respectively.
RObin -
Why objects are dynamically created in java
Why objects are dynamically created in java even if dynamically created object requires more space & more memory references as compared to static object?
I don't even know where to start...
KAMAL.MUKI wrote:
Why objects are dynamically created in javaWhat is the alternative?
even if dynamically created object requires more space & more memory referencesCan you prove that?
as compared to static object?Can you define "static object"?
I vote "troll". -
Why objects are invalid?
Hi all,
IS there any specificreasons why there are so many objects are invalid....
[per]
SQL>
SQL> select A.Owner Oown,
2 A.Object_Name Oname,
3 A.Object_Type Otype,
4 'Miss Pkg Body' Prob
5 from DBA_OBJECTS A
6 where A.Object_Type = 'PACKAGE'
7 and A.Owner ='data'
8 and not exists
9 (select 'x'
10 from DBA_OBJECTS B
11 where B.Object_Name = A.Object_Name
12 and B.Owner = A.Owner
13 and B.Object_Type = 'PACKAGE BODY')
14 union
15 select Owner Oown,
16 Object_Name Oname,
17 Object_Type Otype,
18 'Invalid Obj' Prob
19 from DBA_OBJECTS
20 where Object_Type in
21 ('PROCEDURE','PACKAGE','FUNCTION','TRIGGER','PACKAGE BODY','VIEW')
22 and Owner ='data'
23 and Status != 'VALID'
24 order by 1,4,3,2
25 /
data
CHK_CURR_CORR_REG_ART_CO_DEEP
FUNCTION Invalid Obj
data
FN_CHK_MAIN_ACT
FUNCTION Invalid Obj
data
F_GET_FC_OPBAL
FUNCTION Invalid Obj
data
F_GET_LC_OPBAL
FUNCTION Invalid Obj
data
F_GET_MAIN_FC_OPBAL
FUNCTION Invalid Obj
data
F_GET_MAIN_LC_OPBAL_DIV_1
FUNCTION Invalid Obj
data
F_GET_MAIN_LC_OPBAL_DIV_DEPT
FUNCTION Invalid Obj
data
F_GET_SUB_FC_OPBAL
FUNCTION Invalid Obj
data
F_GET_SUB_LC_OPBAL
FUNCTION Invalid Obj
data
ODB_CHK_COMB_FIRM
FUNCTION Invalid Obj
data
O_DGET_JOB_AUTO_CSV_STS_AUTO
FUNCTION Invalid Obj
data
O_DGET_JOB_CSV_STATUS
FUNCTION Invalid Obj
data
O_GET_SRN_APPL_DT
FUNCTION Invalid Obj
data
O_GET_SRN_CCT_REG_DT
FUNCTION Invalid Obj
data
O_GET_SRN_NAME1
FUNCTION Invalid Obj
data
O_GET_SRN_PAID_FEES
FUNCTION Invalid Obj
data
REM_TEST
FUNCTION Invalid Obj
data
SAR_TEST_FUNC
FUNCTION Invalid Obj
data
CUSTOMER_UPDATE
PACKAGE Invalid Obj
data
OVERLOAD_EG
PACKAGE Invalid Obj
data
PACK1
PACKAGE Invalid Obj
data
PDM_STUD_REFUND_PECS
PROCEDURE Invalid Obj
data
PDM_STUD_REFUND_TCS
PROCEDURE Invalid Obj
data
PDM_STUD_REG_CCT
PROCEDURE Invalid Obj
data
PDM_STUD_REG_FND
PROCEDURE Invalid Obj
data
PDM_STUD_REG_INT
PROCEDURE Invalid Obj
data
PDM_STUD_REG_INT_DUMMY
PROCEDURE Invalid Obj
data
PDM_STUD_REG_INT_DUP_FND_NO
PROCEDURE Invalid Obj
data
PDM_STUD_REG_PE2ART
PROCEDURE Invalid Obj
data
PDM_STUD_REG_PE2ART_RAGHU
PROCEDURE Invalid Obj
data
PDM_STUD_REG_PEI
PROCEDURE Invalid Obj
data
PDM_STUD_REG_PEII
PROCEDURE Invalid Obj
data
ODBTRG101_ITEM
TRIGGER Invalid Obj
data
ODBTRG103_REF
TRIGGER Invalid Obj
data
ODBTRG437_AAT_ACVT_UPT_DAK
TRIGGER Invalid Obj
data
ODBTRG437_AFCD
TRIGGER Invalid Obj
data
ODBTRG437_AFCD_01
TRIGGER Invalid Obj
data
ODBTRG437_AR
TRIGGER Invalid Obj
data
ODBTRG437_BIN
TRIGGER Invalid Obj
data
OV_MEM_FEE_CHK
VIEW Invalid Obj
data
A_DUMMY
PACKAGE Miss Pkg Body
data
CUSTOMER_UPDATE
PACKAGE Miss Pkg Body
data
DBMS_LOCK
PACKAGE Miss Pkg Body
data
ORNDBPKG_ART_FEE_COLL
PACKAGE Miss Pkg Body
data
OVERLOAD_EG
PACKAGE Miss Pkg Body
data
PACK1
PACKAGE Miss Pkg Body
data
PKS
PACKAGE Miss Pkg Body
data
RECEIPT_NO_VARIABLE
PACKAGE Miss Pkg Body
data
STAGE_PACK
PACKAGE Miss Pkg Body
SQL> spool offSET SERVEROUTPUT ON;
SET LINESIZE 1000;
DECLARE
|| Cursor to all Object types in All_Objects belonging to the current user.
CURSOR Cur_Object_Types
IS
SELECT DISTINCT Object_Type
FROM All_Objects
WHERE Owner = User;
|| Select the Invalid objects for the given object type.
CURSOR Cur_Invalid_Objects(
p_Object_Type IN All_Objects.Object_Type%TYPE
IS
SELECT Object_Name, Status
FROM All_Objects
WHERE Object_Type = p_Object_Type
AND Status <> 'VALID'
AND Owner = User;
|| Cursor to select the status of function based indexes.
CURSOR Cur_FuncIdx
IS
SELECT Index_Name, FuncIdx_Status
FROM User_Indexes
WHERE FuncIdx_Status <> 'ENABLED';
|| Select all public synonyms created for current user object for
|| which underlying objects does not exists.
CURSOR Cur_Synonyms
IS
SELECT Synonym_Name
FROM All_Synonyms
WHERE Owner = 'PUBLIC'
AND Table_Owner = User
AND Synonym_Name NOT IN (SELECT Object_Name
FROM User_Objects);
ln_LoopCnt NUMBER;
ln_TabIdxCnt NUMBER;
lv_Object_Type VARCHAR2(100);
lv_Object_Name VARCHAR2(100);
lv_Status VARCHAR2(100);
TYPE IObj_Type
IS
RECORD (Object_Type VARCHAR2(100)
,Object_Name VARCHAR2(100)
,Status VARCHAR2(100)
TYPE IObj_Tab_Type
IS
TABLE OF IObj_Type;
IObj_Table IObj_Tab_Type;
BEGIN
DBMS_OUTPUT.DISABLE;
DBMS_OUTPUT.ENABLE(999999999999);
DBMS_OUTPUT.PUT_LINE(CHR(10));
IObj_Table := IObj_Tab_Type();
ln_TabIdxCnt := 0;
FOR I IN Cur_Object_Types
LOOP
ln_LoopCnt := 0;
FOR J IN Cur_Invalid_Objects(I.Object_Type)
LOOP
ln_TabIdxCnt := ln_TabIdxCnt + 1;
ln_LoopCnt := ln_LoopCnt + 1;
IObj_Table.Extend;
IObj_Table(ln_TabIdxCnt).Object_Type := I.Object_Type;
IObj_Table(ln_TabIdxCnt).Object_Name := J.Object_Name;
IObj_Table(ln_TabIdxCnt).Status := J.Status;
END LOOP;
IF ln_LoopCnt = 0 THEN
ln_TabIdxCnt := ln_TabIdxCnt + 1;
IObj_Table.Extend;
IObj_Table(ln_TabIdxCnt).Object_Type := I.Object_Type;
IObj_Table(ln_TabIdxCnt).Object_Name := ' ';
IObj_Table(ln_TabIdxCnt).Status := 'NONE';
END IF;
END LOOP;
ln_LoopCnt := 0;
FOR K IN Cur_FuncIdx
LOOP
ln_TabIdxCnt := ln_TabIdxCnt + 1;
ln_LoopCnt := ln_LoopCnt + 1;
IObj_Table.Extend;
IObj_Table(ln_TabIdxCnt).Object_Type := 'FUNCTION BASED INDEX';
IObj_Table(ln_TabIdxCnt).Object_Name := K.Index_Name;
IObj_Table(ln_TabIdxCnt).Status := K.FuncIdx_Status;
END LOOP;
IF ln_LoopCnt = 0 THEN
ln_TabIdxCnt := ln_TabIdxCnt + 1;
IObj_Table.Extend;
IObj_Table(ln_TabIdxCnt).Object_Type := 'FUNCTION BASED INDEX';
IObj_Table(ln_TabIdxCnt).Object_Name := ' ';
IObj_Table(ln_TabIdxCnt).Status := 'NONE';
END IF;
ln_LoopCnt := 0;
FOR L IN Cur_Synonyms
LOOP
ln_TabIdxCnt := ln_TabIdxCnt + 1;
ln_LoopCnt := ln_LoopCnt + 1;
IObj_Table.Extend;
IObj_Table(ln_TabIdxCnt).Object_Type := 'PUBLIC SYNONYM WITHOUT UNDELYING OBJECT IN SCHEMA '||USER;
IObj_Table(ln_TabIdxCnt).Object_Name := L.Synonym_Name;
IObj_Table(ln_TabIdxCnt).Status := 'UNDERLYING OBJECT NOT FOUND';
END LOOP;
IF ln_LoopCnt = 0 THEN
ln_TabIdxCnt := ln_TabIdxCnt + 1;
IObj_Table.Extend;
IObj_Table(ln_TabIdxCnt).Object_Type := 'PUBLIC SYNONYM WITHOUT UNDELYING OBJECT IN SCHEMA '||USER;
IObj_Table(ln_TabIdxCnt).Object_Name := ' ';
IObj_Table(ln_TabIdxCnt).Status := 'NONE';
END IF;
IF IObj_Table.COUNT > 0 THEN
FOR I IN 1..IObj_Table.COUNT
LOOP
lv_Object_Type := IObj_Table(I).Object_Type;
lv_Object_Name := IObj_Table(I).Object_Name;
lv_Status := IObj_Table(I).Status;
IF I = 1 THEN
DBMS_OUTPUT.PUT_LINE('+-----------------------------------------------------------------------------------------------------------------------------+');
DBMS_OUTPUT.PUT_LINE(RPAD('| LIST OF INVALID OBJECTS',134,' ')||'|');
DBMS_OUTPUT.PUT_LINE('|-----------------------------------------------------------------------------------------------------------------------------|');
DBMS_OUTPUT.PUT_LINE(RPAD('| OBJECT TYPE | OBJECT NAME | STATUS',134,' ')||'|');
DBMS_OUTPUT.PUT_LINE('|-----------------------------------------------------------------------------------------------------------------------------|');
END IF;
DBMS_OUTPUT.PUT_LINE('| '||RPAD(lv_Object_Type,59,' ')||'| '||RPAD(lv_Object_Name,32,' ')||' | '||RPAD(lv_Status,28,' ')||'|');
END LOOP;
DBMS_OUTPUT.PUT_LINE('|-----------------------------------------------------------------------------------------------------------------------------|');
ELSE
DBMS_OUTPUT.PUT_LINE('THERE ARE NO INVALID OBJECTS IN SCHEMA '||USER||'.');
END IF;
DBMS_OUTPUT.PUT_LINE(RPAD('| NOTE: ',134,' ')||'|');
DBMS_OUTPUT.PUT_LINE(RPAD('| If you find any object in status INVALID / DISABLED / UNDERLYING OBJECT NOT FOUND, then ',134,' ')||'|');
DBMS_OUTPUT.PUT_LINE(RPAD('| execute the procedure RECOMPILE_INVALID_OBJECTS to fix the same.',134,' ')||'|');
DBMS_OUTPUT.PUT_LINE('+-----------------------------------------------------------------------------------------------------------------------------+');
END;
[\pre]
HTH.. -
Why objects are said to have physical reality when they are just software programs?
I am very new to java, infact to the programming world, and am confused about classes and objects. Why do we need a class to create an object? How and when these objects find physical reality? And why do we need to create a software model of a physical thing? Where are these objects and classes stored? Please help. Gone through 10+ websites and 4 books ,couldn't get the clear picture.
0b5fc302-7c76-48af-be15-6146a99280a8 wrote:
Why do we need a class to create an object?
I'ts almost like a construction drawing of a car. This drawing tells you e.g. what the car will look like an how many persons it can carry. But the drawing is not able to do that. But the real car build based on that drawing is able to do things planned in the drawing. But the drawing does not tell what horsepower the cars engine may have. There will be different engines that may fit in the car giving it differen maximun speed and scceleration.
Similar thing is with java classes and objects. A class describes what the objects created from that class are able to do. When You see a class you get a clear picture of those abilities without having an object yet. From that class you get objects having all the same behavior but the objects may differ in the properties given to them.
0b5fc302-7c76-48af-be15-6146a99280a8 wrote:
How and when these objects find physical reality?
Not sure what you mean by that. A computer program has no physical reality in a way you coult touch. The physical reatity of a computer program is representet by the magnetic alignment of goups of tiny areas at your hard drive or electric charge/discharge of the capacitors of your computers RAM. So there is no physical reality for a computer program.
0b5fc302-7c76-48af-be15-6146a99280a8 wrote:
And why do we need to create a software model of a physical thing?
Imagin:
You are a car manufactorer. You have to prove that your cars are safe for their passengers in case of a crash. How do you check that? Are you willing to build hundreds of physical cars only to destroy them in a test crash?
The better way is to simulate the characteristics of the construction and the materials it will be build from in a computer program and do (most of) the crash test with that computer program untill you find a setup that is prommissing to pass a real physical crash test.
0b5fc302-7c76-48af-be15-6146a99280a8 wrote:
Where are these objects and classes stored?
This question also has more than one answer:
1. Computer programs are stored in the world wide web and/or your computer (which effectively is part of the www).
2. Computer programes are stored on some kind of durable memory (punch tapes, magnetic tapes, barcodes, magnetic disks, memory cards/sticks, optical disks...)
3. Computer programs are stored in so called files at those locations and memory types. There are 2 types of files: human readable files and machine readable files. The human readable files are used by programmers to create or change a program. Some kind of program (called compiler or interpreter which is not the same and Java uses both) converts human readable files into machine readable files. Machine readable files contain the program as a sequence of numbers that a computer will interpret as commands and their parameters.
4. The machine readable files cannot be executed as long as they are at the locations and memories mentioned earlier. before a machine readable program can be executed it must be copied to the computers RAM.
hopefully this didn't made things worse... ;o)
bye
TPD -
object is not working in CDATA in XML with flash
hi, in my xml file I use CDATA to insert html code. I have put <object >.. .some flash movie file. .. . </object>. But in front end , I did not get any video played. Why <object> html element does not support + what would be next solution to show my you tube vidoe file.. Thanks for taking interest on this issue.
what are you doing with the string "<object>...some flash movie...</object>"?
-
New objects not visible in report objectpicker
Hi, I'm new to SCOM so please forgive me if I say something wrong.
We are using SCOM 2007 R2.
In Operations Console I've created 2 new Web Applications in Authoring view.
In Reporting view I open Availability report from Microsoft Generic Report Library
Click Add Object
Search for Web Application I've created and get nothing
For some reason I see only old objects when search or view all available in report. I tried to use old Management Package and created my own (I thought the problem was in sealed MP, but my new is unsealed). Found similar problem in "Missing Objects
in Report Objectpicke" question, but we have less than 100 monitoring agents.
So I have no idea why objects are not visible, could you please help?Verify from Group {contain all computers that you want} that using in Reporting.
You also check below link, it's similar issue
http://social.technet.microsoft.com/Forums/systemcenter/en-US/5cb0fb12-73c5-4553-987f-ea415babd876/missing-objects-in-report-objectpicker?forum=operationsmanagerreporting
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer" -
Object linkage failure for GOA
Hello ALL
now i got the list from this table what are the GOAs are misssing link. but Why this Obkect linksa re created initially and later deleted. This cause lot of problems ...
for eg. development linkage is established (refreshed from production) but in production linkage is not avialble for a GOA. why ? how it got wiped out.
As I aware that Object links are set up in BBP_PD for each GOA after distributing to back end.
Any help is appreciated.
Tamas Says..
http://wiki.sdn.sap.com/wiki/display/SRM/BLARELprocessingflow
is it anyting wrong with get staus report? why object relationships are not created for GOA
BR
Muthuthanks SAP note 1404437. Thanks for sap co-operation.
-
How do you set default object settings
I don't know how this happened but my default setting for object transparency got changed from "normal" to "color burn"
(By selecting: Object - Effects - Transparency - then Color Burn or Normal) How can I switch this back so that the default is always on normal so I don't have to switch it from color burn to normal everytime I create a document?
It took me an hour to figure out why objects were translucent. I kept thinking they were behind other objects and trying to bring them to the front, but they weren't. They were just set on color burn. I switched it back to mormal but everytime I start a new document, it defaults back to colr burn. Its driving me crazy.By the way, color burn is the default ONLY when I draw cicles. If I draw a box, or any other shape the default is normal and works the way I want it to. Very odd. Just a pain because everytime I draw a circle I gotta go through all these steps to set it back to normal so the colors don't burn through
-
EJB/JPA Related: Objects are not going to delete from a Collection
Hi All,
I am developing a WebDynpro application using EJB3 model with JPA as a persistence tool. I have mapped using Annotations.
All other works run fine but If I deleted a record through view It will not delete from database.
I have two entities : First : OperationDayWorkingCapitalPlan in which following relation is defined:
@OneToMany(mappedBy="operationDayWorkingCapitalPlan",targetEntity=BranchPartyCollectionsPlan.class,
fetch=FetchType.EAGER, cascade=CascadeType.ALL)
private Collection<BranchPartyCollectionsPlan> branchPartyCollectionsPlans = new
ArrayList<BranchPartyCollectionsPlan>();
related methods:
public Collection<BranchPartyCollectionsPlan> getBranchPartyCollectionsPlans() {
return branchPartyCollectionsPlans;
public void setBranchPartyCollectionsPlans(
Collection<BranchPartyCollectionsPlan> branchPartyCollectionsPlans) {
this.branchPartyCollectionsPlans = branchPartyCollectionsPlans;
public void addBranchPartyCollectionsPlan(BranchPartyCollectionsPlan branchPartyCollectionsPlan) {
this.branchPartyCollectionsPlans.add(branchPartyCollectionsPlan);
if (branchPartyCollectionsPlan.getOperationDayWorkingCapitalPlan() == null || branchPartyCollectionsPlan.getOperationDayWorkingCapitalPlan() != this) {
branchPartyCollectionsPlan.setOperationDayWorkingCapitalPlan(this);
public void removeBranchPartyCollectionsPlan(BranchPartyCollectionsPlan branchPartyCollectionsPlan) {
if (branchPartyCollectionsPlan == null)
return;
if (this.branchPartyCollectionsPlans != null)
if (this.branchPartyCollectionsPlans.remove(branchPartyCollectionsPlan)) {
branchPartyCollectionsPlan.setOperationDayWorkingCapitalPlan((OperationDayWorkingCapitalPlan)null);
and Second one is : BranchPartyCollectionsPlan in which the following relation(inverse) is defined:
@ManyToOne(fetch=FetchType.EAGER)
@JoinColumn(name="OPERATIONDAYWORKINGCAPITALPLANID")
OperationDayWorkingCapitalPlan operationDayWorkingCapitalPlan
related getter and setter:
public OperationDayWorkingCapitalPlan getOperationDayWorkingCapitalPlan() {
return operationDayWorkingCapitalPlan;
public void setOperationDayWorkingCapitalPlan(
OperationDayWorkingCapitalPlan operationDayWorkingCapitalPlan) {
OperationDayWorkingCapitalPlan oldOperationDayWorkingCapitalPlan = this.operationDayWorkingCapitalPlan;
if (oldOperationDayWorkingCapitalPlan != null){
oldOperationDayWorkingCapitalPlan.removeBranchPartyCollectionsPlan(this);
this.operationDayWorkingCapitalPlan = operationDayWorkingCapitalPlan;
if (operationDayWorkingCapitalPlan != null){
operationDayWorkingCapitalPlan.addBranchPartyCollectionsPlan(this);
Plz help me where am I wrong. Why objects(BranchPartyCollectionsPlan) from collection not delete when I merge the main object (OperationDayWorkingCapitalPlan).
Edited by: kapitsu on Oct 27, 2009 10:24 AMHi Mayank,
You can check the below Link.
PSA Not Deleting, error : DDL time(___1):.....0 milliseconds
Regards
Rahul -
Object is Lock in Normal View.
I am new in InDesign. For Book & Newspaper I worked QuarkXpress. But Now I want work in InDesign. I make a master page in InDesign, But when I view normal page my design is not editable because everything is locked. I want know why object is locked. And how i edit master pages matter to normal pages?
Hi,
I would add here that the only objects that should appear on your master page(s) are those that never change from page to page. Any content that you need to change for each page doesn't belong on a master.
Regards,
Malcolm -
I can not save new object using JPA entity manager, please help
I am using Spring 3 with JPA to access database, I tried to persist object, but failed. This is what I do:
1) Config:
<tx:annotation-driven transaction-manager="txManager" proxy-target-class="true"/>
<bean id="txManager"
class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="emf" />
</bean>
<bean id="emf"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="jpaVendorAdapter" ref="jpaVendorAdapter" />
<property name="loadTimeWeaver">
<bean
class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" />
</property>
<property name="persistenceUnitName" value="memberPU"></property>
</bean>
<bean id="jpaVendorAdapter"
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="database" value="MYSQL" />
<property name="showSql" value="true" />
<property name="generateDdl" value="false" />
<property name="databasePlatform" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
</bean>
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url"
value="jdbc:mysql://localhost:3306/springinaction?createDatabaseIfNotExist\=true&useUnicode\=true&characterEncoding\=utf-8&enableQueryTimeouts\=false" />
<property name="username" value="root" />
<property name="password" value="" />
<property name="initialSize" value="5" />
<property name="maxActive" value="10" />
</bean>
2) Persistence.xml:
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
version="1.0">
<persistence-unit name="memberPU" transaction-type="RESOURCE_LOCAL">
<properties>
<property name="hibernate.hbm2ddl.auto" value="validate" />
</properties>
</persistence-unit>
</persistence>
3) Domain:
@Entity
@Table(name = "members")
public class Spitter {
@Id
@Column(name = "id")
@GeneratedValue(generator = "InvSeq")
@SequenceGenerator(name = "InvSeq", sequenceName = "group table seq01", allocationSize = 5)
private int id;
@Column
private String firstName;
@Column
private String lastName;
@Column
private int age;
gettters and setters...
4) Dao:
@Repository
@Transactional
public class SpitterDao {
@PersistenceContext
private EntityManager em;
public void addSpitter(Spitter spitter){
Spitter s = new Spitter();
//s.setId(null);
s.setFirstName("Frank");
s.setLastName("wqrewreqwr");
s.setAge(45);
System.out.print("Persisting into tDB here ");
this.em.merge(s);
this.em.persist(s);
//this.em.flush();
//this.em.getTransaction().commit();
If I do not call em.flush(), no error throws, and program is executed succesfully. BUT nothing is saved to DB. IF I used em.flush(), I got errormsg - "No Transaction", but the Dao is already annoted with @Transactional.
Reading through the JPA is no problem.
I tried different solutions heavily, but no result. Pleaes anyone point out what's the error and why object can not be serialized to DB.
Thanks very muchHello,
You might try posting on a different forum (possibly a Spring forum) as this one is more specifically aimed at TopLink/EclipseLink which you are not using.
It appears the em is not associated to the transaction, but I can't suggest much other than point you at an EclipseLink Spring integration demo such as described here
http://www.vogella.de/java.html
or http://blog.springsource.org/2008/07/17/using-eclipselink-on-the-springsource-application-platform/
which might show settings that are missing or incorrect.
If you switched to using EclipseLink as the JPA provider i would suggest uploading the log file as that might detail how or why it is not being assocated to the transaction.
Best Regards,
Chris -
Why Object is the Base class for the alll the classes in java ?
Is there any specific reason , can any one explain it in detail ?Hi,
Hmm try to understand OO! OO defines anything in the world to be an object. A description of similar objects is defined as class.
So number should be an class, plane, people, computer.... When anything is an object, all the objects should have some behaviour in common (all Objects can be put to a List, all Objects can be printed to the screen using toString() and so on). So all Classes need to have a baseclass. This Class is called Object in Java (anything is an Object). Well you should know, that not anything is an Object in Java - int, boolean, char, float, double ... are primitives. So Java is not "real" OO - this is done due to performance reasons. When you want to use primitives as Objects, use a Wrapper Class (Boolean, Char...),
Lars. -
I just recently decided to start learning it. I was wondering why Objective-C is hardly ever mentioned? It's all the deisgn simplicity of OO, with the power of C, without the hacky-ness of C++. Is there something I'm overlooking?
So I guess, does anyone here have experience with it, and if not, why have you not given it a try?
-JoeSnowman wrote:If you're looking for a WM with the NeXT look 'n' feel check out windowmaker (there is an Arch package for it). There is also AfterStep.
It's not necessarily the Look 'n' Feel I find appealing. One of the more interesting features, imho, is the packaging of an application in its own .app folder. It would make installing (and uninstalling) an application a lot easier for people who are new to linux. This is one of the things Mac fans often stress when talking about OSX (usually comparing it to Windows), and yet this is not an OSX-only feature. But of course, this isn't necessary with a great package manager (as pacman is).. and this isn't the thread to discuss GNUstep I guess
phrakture wrote:hey, look at what fvwm-crystal did for fvwm
ooh! Hadn't seen that yet.. looks neat -
when a person tries to create a new planning area using Transaction BPS0
it is asking for a Object key for a object called
r3tr CLAS /1SEM/CL_FACTORY_100ZPAPK
Is this a SAP Object or a user created object.
Shall i go ahead and create a object key if it is a SAP ObjectHello Balaji,
This is standard SAP object that is the reason why object key is being asked. You can create it in the SAP marketplace using OSS id pertaining to your installation.
Please award points for useful info.
Regards.
Ruchit.
Maybe you are looking for
-
Hi Guru;s Could you please explain me the procedures to be used for clearing the un cleared open GR/IR balances from the GR/IR account? Thanks Sunitha
-
How do i view movies on my ipod do i need a app for it
how do i view movies on my ipod do i need a app
-
I've just upgraded to Snow Leopard and now seem unable to use Page or Numbers. When I open an existing document or spreadsheet the text seems to have turned white and the whole spreadsheet has a purple tint to it. When I try to create a new document
-
How do I delete apps in iTunes? I know there is the hide/unhide option; however, I want to permanently delete certain apps in my iTunes and not hide/unhide. Thanks!
-
Can't get iCal and Address Book to sync properly
I recently upgraded to Office 2008. Since then, I can't get iCal and Address book to sync properly with Entourage 2008 (I did set all three sync criteria in Entourage preferences). None of Entourage's events go into iCal (iCal is blank) and the Addre