Monday, March 30, 2015

Meet the 26-Year-Old Design Prodigy Behind Honda’s New Roadster

Honda R&D Co. Engineer Ryo Mukumoto
Ryo Mukumoto, engineer of Honda R&D Co., center, poses for a photograph with members of the Honda Motor Co. S660 sports car development team in Haga Town, Tochigi Prefecture, Japan. Photographer: Akio Kon/Bloomberg


Honda Motor Co. will soon learn whether giving a designer with no engineering experience five years to develop a sports car is pure genius or plain madness.
Ryo Mukumoto was 22 and into his third year making mock-ups at Honda’s research arm when he beat about 400 other entries in an in-house competition. Honda made him the youngest lead engineer in the company’s history and gave him a young team to help translate his ideas into reality. Mukumoto’s vision -- a low-slung roadster inspired by a speeding bullet -- goes on sale next month in the most competitive segment in Japan’s shrinking car market.
“People of my generation think cars are simply a tool for transportation,” Mukumoto, now 26, said in an interview in Wako City, Japan. “I wanted them to say -- hmm, this car is different,” he said. “We have made a car that will turn heads.”
The introduction of the S660 roadster, named for the 660-cc engine capacity limit that defines the minicar category unique in Japan, comes as Honda searches for a way out of record vehicle recalls and quality lapses. The company has blamed these problems in part on an overly ambitious sales target that placed undue stress on its vaunted engineers.
President Takanobu Ito, himself a motorcycle-racing engineer, will step down in June after leading the company for six years through a tumultuous period that began with a global recession, followed by natural disasters and unfavorable exchange rates, and ending in deaths from defective airbags installed in its cars.

‘Challenging Spirit’

“Honda has been renowned for its challenging spirit and unique cars, but their recent lineup has become more plain,” said Osamu Katayama, author of a 2011 book in Japanese on Honda’s nurturing of talent. “There must be a sense of crisis within the company and they want to send out a message with this car.”
By putting Mukumoto in charge, Honda has reemphasized its trust in backing young talent, a culture that comes from founder Soichiro Honda, who built his company into Japan’s third-largest carmaker despite having no formal education.
“Unlike many other Japanese companies, age and education don’t mean anything at Honda,” said Noboru Sato, a Nagoya University guest professor and former Honda executive, who wrote a book about the automaker’s talent development. “People with a challenging spirit will get rewarded.”
Mukumoto became a fan of Honda after reading a comic book in primary school about Soichiro. He joined the company at 19 after studying machinery at a vocational high school in Okayama Prefecture, western Japan.

Mountain Roads

A car aficionado who drives a Honda S2000 open-top sportscar to work, Mukumoto likes to zip through the mountain roads of Tochigi, an area north of Tokyo that’s famous for its Shinto shrines and Buddhist temples. “I feel like I can have conversations with the car driving there,” he said.
Honda is wagering that the S660 will speak to buyers of Japan’s “kei” minicars.
These tiny cars made up about 40 percent of total new car sales last year, aided by benefits including lower tax rates and a price war between market leaders Suzuki Motor Corp. and Daihatsu Motor Co.
Honda’s soft-top rear-wheel drive S660 with a mid-mounted engine will sell from 2 million yen ($16,760), competing with Daihatsu’s Copen, a front-wheel drive with a retractable hard top that starts from 1.8 million yen.
Honda plans to sell 800 units of the S660 a month in Japan after sales start from April 2, the automaker said in a statement today. The company has no plans to sell it outside Japan at the moment, Mukumoto said today at an event in Tokyo to unveil the sportscar.
Before the S660, Honda had produced an open-top kei sportscar, named Beat, from 1991 to 1996 in Japan.
“It matches Honda’s corporate image of being sporty, which it got from the heritage of NSX and the Beat sportscars years ago,” said Yoshiaki Kawano, an analyst at IHS Automotive in Tokyo. “It will become the iconic vehicle some Honda fanatics have been waiting for a long time.”

Honda S660 Mini Roadster Officially Unveiled in Japan

The Honda S660 two-seater roadster has been officially unveiled in Japan, where it will go on sale on April 2. The mark the launch of the all-new model, Honda will also release the S660 Concept Edition, a special model that will be sold in a limited run of 660 units.

Honda says the S660 is a full-fledged sports car that offers excitement and a “heart-throbbing experience.” These statements are backed by the mid-engine/rear-wheel drive layout of the car, which results in a 45-55 front-rear weight balance and a low center of gravity.

Honda says the open-top body combines high rigidity with reduced weight, with the S660 said to deliver “excellent cornering performance.” Power comes from a 64PS (63hp) 0.66-liter turbocharged three-cylinder petrol engine, as the car is part of the kei-car segment in Japan. The turbocharger has been designed exclusively for the S660 and is responsible for quick response even in the low engine rotation range. 

The engine is mated to a newly-developed 6-speed manual transmission, which makes the S660 the world’s first kei-car equipped with a 6-speed manual transmission. Additionnally, the S660 is also available with a CVT (Continuously Variable Transmission) with 7-speed paddle shifter that features a sports mode. 

The S660 also features a first for its category, the Agile Handing Assist electronic control system. Using brake torque to apply control in accordance with the movement of the vehicle body, the system makes cornering easier.

Despite the small engine, Honda says the sound is typical of a sports car, a feat accomplished by applying sound tuning techniques to the breathing and exhaust sounds of the engine and the operating sound of the turbocharger.

The driving position is similar to that from a go-kart, with the S660 also featuring a steering wheel with a 350mm diameter, the smallest diameter among all Honda mass-market models.

As for the S660 Concept Edition, it sports features from the pre-production study unveiled in 2013, such as the Bordeaux red roll-top, two-tone side mirrors, exhaust pile finisher with exclusive coating, water-repellent body coating “Ultra Glass Coating NEO” and interior tweaks.

Prices for the Honda S660 start from 1,980,000 yen ($16,545).

Sugar causes Cancer ????



1ab661.jpg
1ab670.jpg
1ab680.jpg
1ab68f.jpg
1ab69f.jpg
1ab6af.jpg

 
 

Thursday, March 26, 2015

Here's One Way to Double the World's $80 Trillion Economy: Scrap Migration Restrictions

Eliminating cross-border barriers could lift global GDP by as much as 147 percent

Global growth could use a little more juice these days. The answer could be easier than we think: We need to get moving.
While a freer flow of goods alone can boost global gross domestic product by a modest amount, loosening of restrictions to international migration could lift growth worldwide by 67 percent to 147.3 percent, according to economists' estimates cited in research by Mark Wynne, vice president of the Federal Reserve Bank of Dallas. (Global GDP will probably be $81.5 trillion this year, International Monetary Fund estimates show.)
International migration is the "last frontier of globalization" while also appearing to show the least progress in recent decades, writes Wynne. While voluntary world migration showed progress between 1990 and 2010, it's been a slow climb in the post-World War II era, and nowhere near as simple as the passport-less world of a century ago, he writes.
Source: Federal Reserve Bank of Dallas

The movement brands winners on both sides, with recipient countries building their markets (including through human labor and consumer spending), and originating countries benefiting from money sent back to the home front. Those remittances can add up to 5 percent or more of a poor country's GDP, according to the Dallas Fed.
The U.S. is still winning in overall stock of international migrants, with more than three times as many foreign-born residents than next-closest Russia. The group was more than40 million strong in 2012, according to Census Bureau data.
Accounting for population size, however, there are clearer winners. Of the top 10 countries with the most international migrants, Saudi Arabia boasts the highest share of international migrants, with 26.7 percent. The U.S. is about half that slice of the pie, at 13.8 percent.
And yet too-tight immigration policies could be an albatross for the American economy in decades to come, especially via slower gains in innovation, said Savita Subramanian, head of U.S. equity and quantitative strategy at Bank of America Merrill Lynch. 
"It's still a risk — if we do lose the ability to hire from abroad and attract talent from overseas, that could be a knock" for research and development spending and the resulting boost to our standard of living, said Subramanian. 

Google Agrees to Pay New CFO Ruth Porat $70 Million by 2016


Ruth Porat, chief financial officer of Morgan Stanley, at the Milken Institute Global Conference in Beverly Hills, California, on April 28, 2014.

Google Inc. agreed to pay new Chief Financial Officer Ruth Porat more than $70 million after she takes the post in May, putting her among the highest-paid CFOs in the industry.
Porat, who held the same role at Morgan Stanley, will get a $5 million one-time signing bonus and a $25 million stock grant this year that will vest through 2017, the Mountain View, California-based technology company said in a regulatory filing Thursday. She will also receive a $40 million biennial stock grant in 2016 that will vest by 2019 and a base salary of $650,000 annually.
Porat is replacing Patrick Pichette, who said this month that he would step down. She will leave Morgan Stanley in April and assume her new position on May 26.
Google is under growing pressure to show that it can trim costs as it invests in new businesses to better compete with rivals such as Apple Inc. and Facebook Inc. The company is looking to Porat, one of the financial industry’s most senior female executives with more than 25 years at Morgan Stanley, to bring greater fiscal discipline. She follows other Wall Street veterans who have moved to Silicon Valley firms.
“We’re tremendously fortunate to have found such a creative, experienced and operationally strong executive,” Google Chief Executive Officer Larry Page said in a statement Tuesday when Porat’s appointment was announced.

Bank Compensation

Porat received total compensation of $40.3 million for her first four years as CFO of Morgan Stanley, according to regulatory filings. Her total pay for 2014 hasn’t been disclosed.
Porat owned almost 920,000 Morgan Stanley shares, or $32.7 million worth, according to a regulatory filing earlier this month. About $5.9 million of those were restricted share units that were still subject to cancellation, according data compiled by Bloomberg. She holds options to purchase more than 200,000 additional shares, according to a 2014 filing.
Porat also has been granted stock awards that pay out based on the bank’s performance over three-year periods that haven’t ended. While the 2015 grant hasn’t been disclosed yet, those awards from the past two years total $8.6 million at their target amounts and could rise to more than $15 million if Morgan Stanley exceeded its goals.
Wesley McDade, a spokesman for the bank, declined to comment on whether Porat would receive any of the restricted stock or performance shares.
Pichette’s compensation at Google fell to $5.2 million in 2013 from $38.7 million. The company typically gives equity awards to executive officers in even-numbered years.

Ease Transition

Google on Thursday said it would pay Pichette pro-rated outstanding equity grants that were set to vest in 2016 and 2018, based on the time he would have spent as finance chief. That will ensure “that he continues performing in the role until such time as Google determines that there has been a smooth transition to the new CFO,” the company said.
Twitter Inc. CFO Anthony Noto received a one-time stock award of 1.5 million restricted shares vesting over four years, valued at about $64 million at prices in early July, when his appointment was announced. Noto, who also had experience on Wall Street, received a one-time option grant to buy 500,000 shares, as well. Apple’s Luca Maestri, who was promoted to finance chief last year, received compensation valued at $14 million, including a salary of $717,211 and $11.3 million in stock.
Other roles at Google invite larger pay packages. Omid Kordestani, Google’s 11th employee, was awarded $123 million in restricted stock after he replaced Nikesh Arora as chief business officer last year.

How to Stonewall an Investigation Into Your Government Agency's Cartel-Funded Sex Parties

A new watchdog report lists several sexual incidents of misconduct within the DEA, FBI.

Apparently, some agencies are more open about their weird sex scandals than others.
On Thursday the Justice Department's Office of Inspector General released what's being called the "DEA sex parties" report—or, more officially, its investigation into how the Drug Enforcement Agency, the Federal Bureau of Investigations, the U.S. Marshals Service, and the Bureau of Alcohol, Tobacco, Firearms and Explosives handled various sexual misconduct allegations. The shocking bits of the report—workplace sexual harassment, office love triangles, soliciting prostitutes, and DEA sex parties in Colombia paid for by drug cartels—are just as salacious as the report's nickname implies, but what's also striking is how differently the agencies responded to requests from the department's watchdog arm.
The report claims the the investigation was "significantly impacted and delayed" by the DEA and FBI, the two larger agencies, which cited privacy laws as a reason for their heavily redacted reports. The DEA initially turned over case summaries that were so redacted investigators couldn't tell what the nature or circumstances of the cases were. Here's a sample page about...something, something, Rolex watch, something, "All subjects were alleged to have associated with prostitutes while in Bogota."

“All subjects were alleged to have associated with prostitutes while in Bogota.”
Department of Justice Inspector General report

From the Department of Justice OIG report, page 98
When the DEA and FBI did turn over files, investigators realized they hadn't received all of the relevant documents after following up with the agencies. 
The report also said the DEA improperly withheld information on an ongoing misconduct case, and only told them about it months later, when the case was closed. When the Inspector General's office re-interviewed DEA employees about the case, the employees said "they were given the impression that they were not to discuss this case with the OIG while the case remained open," though the investigators were entitled to the information.

As a result, the IG's office wrote that "we cannot be completely confident that the FBI and DEA provided us with all information relevant to this review." 

Monday, March 23, 2015

7 ways private equity is gaming your pension

It's really difficult to trust and find a good person to give your hard earn money and invest. This is one of the articles I came across of one such news. There are both sides, good and bad. It's always to be informed than without knowing anything. Kentucky high school history teacher Randy Wieck is on a lonely mission to discover the whereabouts of the 12 percent of each paycheck he and 74,800 other educators are putting into a state pension fund. He’s especially keen to unearth details on the $1.1 billion the badly underfunded Kentucky Teachers’ Retirement System has committed to private equity and hedge funds. The quest pits Wieck against billionaire fund managers, a white-shoe law firm, state pension officials, and even his own union. “It’s my money and taxpayer dollars they’re skimming,” he says. “And they refuse to say how much they’re charging.” Wieck filed an open-records request last fall seeking access to details of the terms under which his pension plan had invested in alternative assets. Frustrated by the resistance he faced, he drafted his own legal complaint and sued the plan in Jefferson County Circuit Court in November. The suit was dismissed on jurisdictional grounds in March. Wieck is considering whether to refile in Franklin County, where the judge said the suit belongs. The teacher’s contention that alternative-asset managers may be tacking on hidden charges and otherwise harming investors is supported by research from the U.S. Securities and Exchange Commission. More than half of alternative-asset managers surveyed by the SEC were found to be adding “hidden fees” on top of those disclosed to clients, Bloomberg reported last April. Given the broad concerns the SEC raised, Blackstone Group and TPG Capital have begun detailing in marketing materials tens of millions of dollars they charge portfolio companies for services such as health-care consulting and bulk purchasing. Private equity firms pool money from investors to buy companies with the goal of restructuring and reselling them at a profit. Pension funds have invested more than $3 trillion in private equity and other alternative assets. It’s expensive: Pension funds and other investors typically pay private equity firms 2 percent in annual fees, plus 20 percent of profits on any investments. Private equity officials say that to run their businesses, they have to keep virtually everything about their operations secret, including their fees. They often require the public pensions investing in their funds to sign confidentiality agreements and join them in resisting Freedom of Information Act requests, open-records requests, and legal actions by pension participants, taxpayers, or anyone else seeking details about the agreements. Dory Wiley, chief executive officer of Commerce Street Holdings, defends the need for secrecy. His funds have what he calls a unique strategy for buying distressed bonds that he doesn’t want others to imitate. “You can’t copyright an idea,” he says. “And there are a lot of firms on Wall Street that copy what others are doing.” Wieck—a Louisville native with a Ph.D. in American studies from the Sorbonne—believes he and his colleagues have reason to worry. Theirs is one of the worst-funded teachers’ plans in the nation, at $18.7 billion in assets, with just 54¢ on hand to pay each dollar of promised benefits. After Wieck sued, Carlyle Group and Blackstone separately hired Joseph McLaughlin of Simpson Thacher & Bartlett, who drafted almost identical letters arguing that releasing the documents “would cause substantial competitive harm.” Sharing an edited version was also impractical because “confidential trade secret information pervades the requested documents.” McLaughlin declined to comment. On examination, such documents show that the industry often labels as "trade secrets" information that has as much to do with high fees, weak oversight, and conflicts of interest as it does with business strategies. Bloomberg obtained roughly 50 private equity fund documents similar to those Wieck is seeking. The excerpts below from Blackstone Group, Camelot Group, Commerce Street Capital, HKW, and Starwood Capital reveal how private equity firms shore up their power—often at the expense of pension funds and the people who depend on them. All the companies declined comment, except Commerce Street. 1. Fund managers decide how much their assets are worth Legalese: “Asset valuations will be determined by managers. The fund does not intend to commission periodic appraisals of the investments and will not be obligated to provide fair market value estimates.” What that means: Private equity managers often have large holdings in illiquid assets such as troubled companies and real estate, which are, in fact, difficult to value. That said, it's in the managers' best interests to assign generous values because the managers typically get to keep 20 percent of profits and rely on historical returns to pitch new funds to investors. 2. Managers decide what to pay themselves Legalese: “Managers expect that affiliate services will be provided at competitive rates but the compensation may not be determined through arm's-length negotiation.” What that means: Private equity funds often buy troubled companies and try to restructure them. In the process, they hire affiliates in which the private equity partners may have financial interests to provide administrative and other services. The SEC has found that such related-party dealings often come at a steep cost that cuts into the returns paid to pensions and other fund investors. 3. The chief compliance officer freelances at your expense Legalese: "A law firm wholly owned by HKW's partner, General Counsel and Chief Compliance Officer, also has an arrangement with five of the HKW funds to act as counsel when such HKW Funds purchase or sell portfolio companies. ... There may be a conflict between her economic interest and what is in the best interests of those HKW funds." What that means: The chief compliance officer is responsible for making sure that a private equity firm acts in accordance with applicable laws and fund terms. The language above, though, notes that she may also act as counsel to related funds at the same time. That opens the door to conflicts of interest, which should be a red flag for investors. 4. Yes we self-deal. But you must still trust us Legalese: “Fund managers can invest in companies in which they have a preexisting interest. They may invest in other funds which may compete with the fund for investments, management's time and in other ways. ... It may be difficult for investors to subject the behavior of fund managers to close scrutiny. Investors will ultimately be heavily dependent upon the good faith of the fund managers.” What that means: Private equity managers often run several funds and may use them to buy and sell assets in which they already have a stake. Investors often have no way of knowing what's going on. They just have to trust that the fund managers are doing the right things. 5. It’s industry practice for some investors to profit at the expense of others Legalese: “In accordance with common industry practice, managers may enter into ‘side letters’ that grant certain investors rights, benefits and privileges not made available to other investors. Such agreements will be disclosed only to investors who have negotiated rights to review such agreements.” What that means: Big investors in private equity funds often receive especially favorable terms such as fee cuts and first looks at especially attractive investments. Such arrangements, which are outlined in "side letters," are often kept secret from the other investors, who may be at a disadvantage as a result. 6. Rules? Not for us Legalese: "The fund is not subject to the Investment Company Act, which, among other things, requires investment companies to have independent directors and to maintain their assets and securities in the custody of a qualified custodian … " What that means: Mutual funds are strictly regulated under federal securities law. Private equity and hedge funds are not. 7. Public officials must fight for our secrecy Legalese: "If a public records access law requires a limited partner to disclose information … the limited partner must take all reasonable steps requested by Blackstone to oppose and prevent disclosure.” What that means: Private equity firms argue that virtually everything about their activities is a "trade secret," and pensions and other investors in their funds agree in advance to keep it that way.

Tuesday, March 17, 2015

Some Exceptions coming while Create Maven project with hibernate

Below i am describing some of the exceptions and error which might come while you are trying to build project with hibernate annotation.
In maven i have used below dependency


org.hibernate hibernate-core 4.3.8.Final org.hibernate hibernate-annotations 3.5.6-Final org.hibernate hibernate-commons-annotations 3.3.0.ga junit junit 4.8.1

we have created dto class UserDetails.java (dto.user.UserDetails)

below is the hibernate.cfg.xml configuration file.

false com.mysql.jdbc.Driver root123 jdbc:mysql://localhost:3306/test1 root org.hibernate.dialect.MySQLDialect true create



If you can see above, we have include "com.common.Stock" for mapping and we have not defined this class in the project. So this will lead to below error. Before that below is our test code

------ public class hibernate { public static void main(String[] args) { UserDetails user = new UserDetails(); user.setUserId(1); user.setUserName("First User"); // create session factory - one object- get session from SessionFactory // need configuration to build sessionFactory // new Configuration().configure() // u need to have hibernate.cfg.xml in default place resources SessionFactory sessionFactory = new Configuration().configure() .buildSessionFactory(); Session session = sessionFactory.openSession(); session.beginTransaction(); session.save(user); session.getTransaction().commit(); session.close(); } }

-------------------------------

Exception in thread "main" org.hibernate.MappingException: Unable to load class [ com.common.Stock] declared in Hibernate configuration entry at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2281) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2229) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2209) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2162) at org.hibernate.cfg.Configuration.configure(Configuration.java:2077) at org.hibernate.cfg.Configuration.configure(Configuration.java:2056) at hibernate.main(hibernate.java:17) Caused by: java.lang.ClassNotFoundException: com.common.Stock at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:193) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2278) ... 6 more --------------------------------------

As you have not defined you should either remove from hibernate configuration class or comment that. Best is remove.



--- 2. Error number 2 : missing of driver class for Mysql If you can look at the above mentioned dependencies, I have not included a driver for Mysql. This will give below error. Exception in thread "main" org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver] at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:243) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.loadDriverIfPossible(DriverManagerConnectionProviderImpl.java:200) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.buildCreator(DriverManagerConnectionProviderImpl.java:156) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:95) at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:260) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:94) at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206) at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1887) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1930) at hibernate.main(hibernate.java:18) Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:228) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:240) ... 15 more -------------

Solution 2: Include dependency for driver:Mysql

mysql mysql-connector-java 5.1.9



-------------- It will work fine and you will have below out in the eclipse. Note : we have used "create"\ create where this will lead to drop exist table and create every time runs. Table will have same name as DTO. ie: table name=Userdetails fields=userId,Username and userId will be primary ----------------------------------



Mar 17, 2015 1:38:07 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager INFO: HCANN000001: Hibernate Commons Annotations {4.0.5.Final} Mar 17, 2015 1:38:07 PM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {4.3.8.Final} Mar 17, 2015 1:38:07 PM org.hibernate.cfg.Environment INFO: HHH000206: hibernate.properties not found Mar 17, 2015 1:38:07 PM org.hibernate.cfg.Environment buildBytecodeProvider INFO: HHH000021: Bytecode provider name : javassist Mar 17, 2015 1:38:07 PM org.hibernate.cfg.Configuration configure INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml Mar 17, 2015 1:38:07 PM org.hibernate.cfg.Configuration getConfigurationInputStream INFO: HHH000040: Configuration resource: /hibernate.cfg.xml Mar 17, 2015 1:38:07 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! Mar 17, 2015 1:38:07 PM org.hibernate.cfg.Configuration doConfigure INFO: HHH000041: Configured SessionFactory: null Mar 17, 2015 1:38:08 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!) Mar 17, 2015 1:38:08 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/test1] Mar 17, 2015 1:38:08 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator INFO: HHH000046: Connection properties: {user=root, password=****} Mar 17, 2015 1:38:08 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator INFO: HHH000006: Autocommit mode: false Mar 17, 2015 1:38:08 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure INFO: HHH000115: Hibernate connection pool size: 20 (min=1) Mar 17, 2015 1:38:13 PM org.hibernate.dialect.Dialect INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect Mar 17, 2015 1:38:13 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4 Mar 17, 2015 1:38:14 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService INFO: HHH000399: Using default transaction strategy (direct JDBC transactions) Mar 17, 2015 1:38:14 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory INFO: HHH000397: Using ASTQueryTranslatorFactory Mar 17, 2015 1:38:17 PM org.hibernate.tool.hbm2ddl.SchemaExport execute INFO: HHH000227: Running hbm2ddl schema export Hibernate: drop table if exists UserDetails Hibernate: create table UserDetails (userId integer not null, userName varchar(255), primary key (userId)) Mar 17, 2015 1:38:19 PM org.hibernate.tool.hbm2ddl.SchemaExport execute INFO: HHH000230: Schema export complete Hibernate: insert into UserDetails (userName, userId) values (?, ?)

Tuesday, March 10, 2015

Bangladesh Wins Over England

Bangladesh won against England 2015 ICC Cricket world cup and yet removed England from ICC world cup. It has been a exiting win. England crashes out as Bangladesh wins crucial match by 15 runs England has been knocked out of the World Cup by a spirited Bangladesh who grabbed a quarter-final spot following a dramatic 15-run victory in a tight Pool A match in Adelaide on Monday Put into bat, Mahmudullah struck Bangladesh's first World Cup century and starred in two key partnerships to lift Bangladesh to 7 for 275. Three-times finalists England made a mess of its chase on an Adelaide Oval track that held no demons and folded for 260 in the penultimate over. Bangladesh looked a bundle of nerves towards the end but Rubel Hossain (4 for 53) claimed two wickets in the 49th over to trigger wild celebrations among its fans. England made a decent start to its chase before losing its way in the crunch match. Adjudged leg before wicket on 11, opener Moeen Ali successfully got the decision overturned but the bearded right-hander was run out after a mix-up with Ian Bell (63). Bell, who hit Mashrafe Mortaza for three boundaries in an over, pulled and drive with impunity, adding 54 runs with Alex Hales (27). Mortaza dismissed Hales but it was Hossain's double strike in the 27th over that turned the match on its head. Done in by extra bounce, Bell was caught behind while Eoin Morgan hooked to the fine leg fielder to fall for his fifth duck in last 11 innings. England's problems were compounded as James Taylor perished chasing a wide delivery and Joe Root fell for 29. But Jos Buttler (65) and Chris Woakes (42 not out) injected life into the chase with some lusty hitting before Hossain dismissed Stuart Broad and James Anderson in the 49th over. The loss secured Sri Lanka's path through to the quarter-finals. Mahmudullah celebrates his ton for Bangladesh PHOTO: Mahmudullah celebrates scoring Bangladesh's first ever World Cup hundred. (Getty Images: Morne de Klerk) Mahmudullah creates history with fine hundred Earlier, Mahmudullah struck Bangladesh's first World Cup century and shared partnerships with Soumya Sarkar (40) and Mushfiquir Rahim (89) to help their side overcome a poor start. With England needing to win both remaining pool matches to keep its quarter-final hopes alive, Morgan won the toss and decided to field, hoping his bowlers would capitalise on the early morning conditions. Morgan set attacking field with a three-man slip cordon and Anderson found enough movement to induce two edges in his first seven deliveries, reducing Bangladesh to 2 for 8. Mahmudullah initially struggled to find the middle of his bat but grew more confident with every over and added 86 runs with Sarkar to consolidate the innings. England could not, however, maintain the pressure and Chris Jordan struggled for rhythm and conceded 15 runs in his second over. Jordan dismissed Sarkar in the 21st over and Moeen sent back Shakib Al Hasan but Mahmudullah and Rahim compiled Bangladesh's record World Cup stand to thwart England. Mahmudullah found an able ally in Rahim and the duo mixed caution with aggression to keep the scoreboard ticking over. Mahmudullah looked a bundle of nerves approaching the 100-mark, which he eventually reached in the 44th over, scurrying for a single before embarking on an emotional celebration with Rahim. He added another three runs before being run out after a 138-ball knock that included seven fours and two sixes. Rahim continued punishing the English bowlers, hitting eight boundaries and a six in his 77-ball knock, his third half-century of the tournament.