Opinion
Plaintiffs John and Cecilia Zipperer sued the County of Santa Clara on various theories, based on allegations that their solar home was malfunctioning as a result of shading from trees growing on defendant’s adjoining property. The trial court sustained defendant’s demurrer to plaintiffs’ first amended complaint, without leave to amend. This appeal followed. For reasons explained in the opinion, we agree with the trial court’s determination that plaintiffs have not stated any cause of action against defendant, nor is there any reasonable possibility that the defects in their complaint can be cured by amendment. Treating the order sustaining the demurrer as a judgment of dismissal, we therefore affirm.
*1018 FACTS 1
In the mid-1980’s, plaintiffs built a solar home on their property in Los Gatos, after obtaining permits to do so from defendant.
In 1991, defendant acquired a parcel of land that adjoins plaintiffs’ property, and defendant placed that land in a parks reserve. There is a grove of five or six trees growing on defendant’s land. Since 1991, those trees have been growing at the rate of 10 to 15 feet per year. By 2004, the trees were about 100 feet taller than when defendant acquired the land.
In 1997, plaintiffs’ solar system began to malfunction because the trees on defendant’s land interfered with the sunlight reaching their solar panels. Despite numerous requests from plaintiffs, and notwithstanding verbal promises by “certain officials and certain individuals that this situation would be corrected,” defendant did not trim or remove the trees.
PROCEDURAL HISTORY
In April and May 2004, plaintiffs filed tort claims with defendant. According to plaintiffs, “there was no time limit” for filing these claims, because their injury was of a “continuing” nature. Defendant rejected the claims.
In May 2004, plaintiffs brought this action against defendant. The verified complaint asserted causes of action for nuisance, trespass, statutory violations constituting negligence, and intentional infliction of emotional distress. As to their negligence claim, plaintiffs alleged that defendant violated various statutes, including the Solar Shade Control Act.
In July 2004, defendant demurred to the complaint. In support of its demurrer, defendant asked the trial court to take judicial notice of a Santa Clara County ordinance entitled “Exemption from Solar Shade Control Act.” Plaintiffs opposed the demurrer, but not defendant’s request for judicial notice.
In September 2004, after a hearing on the matter, the trial court sustained defendant’s demurrer, granting plaintiffs leave to amend their complaint within 20 days.
Plaintiffs filed a verified first amended complaint in September 2004. Among other things, the amended complaint asserted a new cause of action *1019 for breach of contract, as well as plaintiffs’ previous claims for nuisance, negligence, trespass, violation of statute, and emotional distress. As to their new contract claim, plaintiffs alleged a contract with defendant based on its grant of building permits for their solar home. Plaintiffs attached the permits as an exhibit to the amended complaint.
The first amended complaint drew another demurrer, which defendant filed in October 2004. Again, plaintiffs opposed the demurrer.
Following a hearing held in December 2004, the trial court entered its formal order sustaining defendant’s demurrer without leave to amend. Defendant gave notice of the order in January 2005.
This appeal ensued.
THRESHOLD ISSUES
Before analyzing the substantive issues raised in this appeal, we first address two threshold procedural questions: whether we may review the challenged order at all, and if so, what standards govern that review.
Appealability
Although plaintiffs’ form notice of appeal refers to a judgment of dismissal, the appellate record contains no judgment. This appeal thus appears to have been taken from the order sustaining defendant’s demurrer to plaintiffs’ first amended complaint, without leave to amend. “Orders sustaining demurrers are not appealable.”
(Hill
v.
City of Long Beach
(1995)
In this case, defendant does not argue for dismissal of the appeal, and the issues are fully briefed. (See
Gu
v.
BMW of North America, LLC, supra,
Standard and Scope of Review
We review a trial court’s decision to sustain a demurrer for an abuse of discretion. (See, e.g.,
Hendy v. Losse
(1991)
In analyzing the existence of liability under the governing substantive law, “we exercise our independent judgment about whether the complaint states a cause of action as a matter of law.”
(Montclair Parkowners Assn. v. City of Montclair
(1999)
“In reviewing the sufficiency of a complaint against a general demurrer, we are guided by long-settled rules. ‘We treat the demurrer as admitting all material facts properly pleaded, but not contentions, deductions or conclusions of fact or law. [Citation.] We also consider matters which may be judicially noticed.’ [Citation.] Further, we give the complaint a reasonable interpretation, reading it as a whole and its parts in their context.”
(Blank v. Kirwan
(1985)
On appeal, “the plaintiff bears the burden of demonstrating that the trial court erred.”
(Cantu v. Resolution Trust Corp.
(1992)
In this case, plaintiffs bear the further burden of particularity in pleading their tort-based causes of action, since defendant is a public entity. “Under the Government Tort Liability Act, all liability is statutory. Hence, the rule that statutory causes of action must be specifically pleaded applies, and every element of the statutory basis for liability must be alleged.” (4 Witkin, Cal. Procedure (4th ed. 1997) Pleading, § 579, pp. 675-676. See, e.g.,
Lopez
v.
Southern Cal. Rapid Transit Dist.
(1985)
With those principles in mind, we consider the sufficiency of plaintiffs’ complaint under the governing substantive law.
*1021 ANALYSIS
In the unpublished portion of this opinion, we address each of the six asserted causes of action of plaintiffs’ first amended complaint. We conclude that none is viable nor is there any reasonable possibility of cure. In the published portion of this opinion, we discuss only plaintiffs’ third cause of action, which asserts negligence.
First Cause of Action-Second Cause of Action: *
Third Cause of Action: Negligence
One essential element of a cause of action for negligence is a legal duty.
(Potter v. Firestone Tire & Rubber Co.
(1993)
Governing Substantive Law: The Solar Shade Control Act
“The Solar Shade Control Act . . . provides limited protection to owners of solar collectors from shading caused by trees on adjacent properties.” (Sher
v. Leiderman
(1986)
In pertinent part, the act provides: “After January 1, 1979, no person owning, or in control of a property shall allow a tree or shrub to be placed, or, if placed, to grow on such property, subsequent to the installation of a solar collector on the property of another so as to cast a shadow greater than 10 percent of the collector absorption area” during midday hours as specified in the statute. (§ 25982; see generally 11 Witkin, Summary of Cal. Law, supra, Equity, § 137 p. 820.)
The act permits local jurisdictions to exempt themselves from its operation. The exemption provision states: “Any city, or for unincorporated *1022 areas, any county, may adopt, by majority vote of the governing body, an ordinance exempting their jurisdiction from the provisions of this chapter. The adoption of such an ordinance shall not be subject to the provisions of the California Environmental Quality Act (commencing with Section 21000).” (§ 25985.)
The Parties’ Contentions
The parties disagree on whether the Solar Shade Control Act applies in this case.
4
Under defendant’s interpretation of the act, there can be no liability here because defendant did not plant or “place” the trees for purposes of the statute. In other words, there is no statutory violation because these were not “later-planted” trees.
(Kucera v. Lizza, supra,
The parties also disagree about the statutory exemption. Defendant asserts that it is exempt from the act, having adopted an ordinance as authorized by section 25985. Plaintiffs argue against application of the exemption here, asserting “that there was already in existence a continuing duty on the part of the County” when it adopted the ordinance and a continuing breach of that duty when plaintiffs’ solar system began to fail. Plaintiffs thus contend; “The County should be liable for any of the damages they had already caused.” They characterize defendant’s use of the exemption provision as “a quasi-ex post facto application on the part of the County.” As we understand it, the essence of plaintiffs’ argument on this point is that defendant’s ordinance offends constitutional principles because it operates retroactively, defeating their preexisting damage claims. Defendant does not specifically meet that contention.
Analysis
As we now explain, plaintiffs’ statutory claim cannot be maintained because defendant is exempt from the Solar Shade Control Act by virtue of its adoption of a qualifying ordinance, as permitted by section 25985. Given that determination, we need not address the parties’ differing interpretations of other provisions of the act.
*1023
“ ‘In passing on the validity of an ordinance or a statute it will be presumed that it is valid.’ ”
(City of Industry v. Willey
(1970)
Here, plaintiffs do not make a facial attack on the validity of either the ordinance or the enabling statute. Instead, they object to defendant’s use of the statutory exemption to the extent that it operates retrospectively to extinguish their statutory claims.
“Although the courts normally construe statutes to operate prospectively, the courts correlatively hold under the common law that when a pending action rests solely on a statutory basis, and when no rights have vested under the statute, ‘a repeal of such a statute without a saving clause will terminate all pending actions based thereon.’ ”
(Governing Board
v.
Mann
(1977)
Applying the foregoing principle to the case at hand, we conclude that plaintiffs’ cause of action was eliminated by defendant’s ordinance. In reaching that conclusion, we consider four factors: the statutory nature of the plaintiffs’ claim; the unvested nature of plaintiffs’ claimed rights; the timing of the elimination of those rights; and the nature of the mechanism by which the right of action was eliminated.
Addressing the first factor, we observe that plaintiffs’ claim is wholly statutory, arising as it does from defendant’s asserted violation of the Solar Shade Control Act. Plaintiffs’ claim is “a cause of action unknown at the common law . . . created by statute . . . .”
(Department of Social Welfare
v.
*1024
Wingo
(1946)
We next consider whether the nature of plaintiffs’ rights prevents abolition of their claim. Repeal of a remedial statute destroys a pending statutory action unless “vested or contractual rights have arisen under” the statute.
(Department of Social Welfare v. Wingo, supra,
The third factor in determining whether a statutory claim has been extinguished is timing. Whenever the Legislature eliminates a statutory remedy “before a judgment becomes final,” the legislative act “destroys the right of action.”
(Department of Social Welfare v. Wingo, supra,
Finally, we turn to the legislative mechanism by which the right of action is abolished. Typically, that mechanism is repeal or amendment of the remedial statute. (See, e.g.,
Brenton
v.
Metabolife Internat., Inc., supra,
In this case, we conclude, the statutory right of action was eliminated by the exemption provision, which operated as a valid repeal method. Here, at the very time that the Legislature created the statutory right of action under the Solar Shade Control Act, it expressly empowered cities and counties to foreclose such actions against them. In this case, once defendant exercised that power, plaintiffs’ statutory cause of action was abolished. Just as surely as if the Legislature had repealed the Solar Shade Control Act in its entirety, the “statutory authority for [plaintiffs’] action . . . has now been withdrawn.”
(International etc. Workers v. Landowitz, supra,
To sum up, plaintiffs’ statutory cause of action is abolished. Plaintiffs enjoyed no vested rights in this statutory claim, which was unknown at common law, and which was not pursued to final judgment before its elimination by defendant’s use of the exemption provision. That exemption operated as a form of repeal when defendant adopted it, extinguishing plaintiffs’ statutory right of action. Because the mechanism of repeal was authorized by the Legislature, the elimination of plaintiffs’ claim under these circumstances does not implicate retrospectivity concerns.
*1026 Fourth Cause of Action:-Sixth Cause of Action: *
CONCLUSION*
DISPOSITION
Treating the trial court’s order as incorporating a judgment of dismissal, we affirm.
Bamattre-Manoukian, Acting P. J., and Mihara, J., concurred.
On October 28, 2005, the opinion was modified to read as printed above.
See footnote, ante, page 1013.
See footnote, ante, page 1013.
Notes
Because this case comes to us following a demurrer, we take the facts from plaintiffs’ first amended complaint, the operative pleading. (See
Gu v. BMW of North America, LLC
(2005)
In this section of the opinion, which discusses plaintiffs’ third cause of action, further unspecified statutory references are to the Public Resources Code.
A review of the chronology of pertinent events will be helpful to an understanding of the parties’ contentions. In 1979, the Solar Shade Control Act took effect. (§ 25982.) In 1984-1985, plaintiffs built their solar home with county permits. In 1991, defendant acquired the adjoining parcel of land, with the trees already on it, and it placed that land in a parks reserve. In 1997, plaintiffs’ solar system began to fail. In 2002, defendant adopted an ordinance exempting itself from the Solar Shade Control Act. In 2004, plaintiffs filed this action.
